Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- sysctl net.ipv4.ip_forward=1
- iptables -t nat -A PREROUTING -p tcp --dport 443 -j DNAT --to-destination 0.129.148.104:443
- iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 0.129.148.104:80
- iptables -t nat -A POSTROUTING -j MASQUERADE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement