Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

iptables localhost redirection

 sudo iptables -t nat -A PREROUTING -p tcp -m multiport --dports 443,80 -j DNAT --to-destination 192.168.2.4:80


 iptables -t nat -A POSTROUTING -j MASQUERADE
Source by raspberrypi.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #iptables #localhost #redirection
ADD COMMENT
Topic
Name
2+5 =