Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###############
- # UWAGA!!
- # wszystkie wpisy zostaną usunięte.
- ###############
- iptables -F
- iptables -F -t nat
- iptables -F -t mangle
- iptables -X
- #iptables -t nat -A POSTROUTING -o br0 -j MASQUERADE
- #iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
- iptables -P FORWARD ACCEPT
- iptables -P OUTPUT ACCEPT
- iptables -t nat -A PREROUTING -p tcp -s 0/0 -d 91.121.161.152 --dport 80 -j DNAT --to-destination 10.0.0.10:80
- iptables -t nat -A POSTROUTING -o eth0 -d 91.121.161.152 -j SNAT --to-source 10.0.0.10
- iptables -A FORWARD -p tcp -s 10.0.0.10 --sport 80 -j ACCEPT
- iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o eth0 -j SNAT --to-source 91.121.161.152
- #iptables -t nat -I PREROUTING -p tcp -d 91.121.161.152 --dport 80 -j DNAT --to 10.0.0.10:80
- #iptables -A FORWARD -p tcp -d 10.0.0.10 --dport 80 -j ACCEPT
- iptables -t nat -I PREROUTING -p tcp -d 91.121.161.152 --dport 443 -j DNAT --to 10.0.0.11:443
- iptables -A FORWARD -p tcp -d 10.0.0.11 --dport 443 -j ACCEPT
- iptables -t nat -I PREROUTING -p tcp -d 91.121.161.152 --dport 8000 -j DNAT --to 10.0.0.10:8000
- iptables -A FORWARD -p tcp -d 10.0.0.10 --dport 8000 -j ACCEPT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement