Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ifconfig at0 192.168.2.1 netmask 255.255.255.0
- ifconfig at0 mtu 1400
- route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1
- echo 1 > /proc/sys/net/ipv4/ip_forward
- iptables -t nat -A PREROUTING -p udp -j DNAT --to 192.168.1.1
- iptables -P FORWARD ACCEPT
- iptables --append FORWARD --in-interface at0 -j ACCEPT
- iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
- iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 10000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement