Last active
December 24, 2024 14:58
-
-
Save martian0x80/4dc1d15b011df647a68c4e63566e731d to your computer and use it in GitHub Desktop.
iptables forward port 80
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# enable forwarding for kernel | |
#vim /etc/sysctl.conf | |
#sudo sysctl --system | |
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port xxxx | |
apt-get install iptables-persistent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment