Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo 1 > /proc/sys/net/ipv4/ip_forward
- # clear
- /usr/sbin/iptables -F
- /usr/sbin/iptables -t nat -F
- /usr/sbin/iptables -t mangle -F
- /usr/sbin/iptables -X
- /usr/sbin/iptables -t nat -A POSTROUTING -o dsl0 -j MASQUERADE
- #/usr/sbin/iptables -A FORWARD -i dsl0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
- /usr/sbin/iptables -A FORWARD -i dsl0 -o eth1 -j ACCEPT
- /usr/sbin/iptables -A FORWARD -i eth1 -o dsl0 -j ACCEPT
- /usr/sbin/iptables -t nat -I PREROUTING -i eth1 -p udp --dport 53 -j DNAT --to-destination 62.148.128.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement