Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###############################
- iptables -P INPUT ACCEPT
- iptables -P FORWARD ACCEPT
- iptables -P OUTPUT ACCEPT
- iptables -t nat -F
- iptables -t mangle -F
- iptables -F
- iptables -X
- ip6tables -P INPUT ACCEPT
- ip6tables -P FORWARD ACCEPT
- ip6tables -P OUTPUT ACCEPT
- ip6tables -t nat -F
- ip6tables -t mangle -F
- ip6tables -F
- ip6tables -X
- ###############################
- # "VIRTUAL" IP ADDRESSES
- iptables -t nat -A PREROUTING -p tcp --dport 8082 -j DNAT --to-destination 10.0.30.121
- iptables -t nat -A POSTROUTING -p tcp --dport 8082 -d 10.0.30.121 -j SNAT --to-source 10.0.30.106
- iptables -t nat -A PREROUTING -p udp -m multiport --dport 10000:10399 -j DNAT --to-destination 10.0.30.121
- iptables -t nat -A POSTROUTING -p udp -m multiport --dport 10000:10399 -d 10.0.30.121 -j SNAT --to-source 10.0.30.106
- iptables -A FORWARD -p udp -s 10.0.30.121 -j ACCEPT
- iptables -A FORWARD -p udp -m multiport --dport 10000:10399 -d 10.0.30.121 -j ACCEPT
- iptables -t nat -A PREROUTING -p tcp --dport 8083 -j DNAT --to-destination 10.0.30.122
- iptables -t nat -A POSTROUTING -p tcp --dport 8083 -d 10.0.30.122 -j SNAT --to-source 10.0.30.106
- iptables -t nat -A PREROUTING -p udp -m multiport --dport 10400:10799 -j DNAT --to-destination 10.0.30.122
- iptables -t nat -A POSTROUTING -p udp -m multiport --dport 10400:10799 -d 10.0.30.122 -j SNAT --to-source 10.0.30.106
- iptables -A FORWARD -p udp -s 10.0.30.122 -j ACCEPT
- iptables -A FORWARD -p udp -m multiport --dport 10400:10799 -d 10.0.30.122 -j ACCEPT
- iptables -t nat -A PREROUTING -p tcp --dport 8084 -j DNAT --to-destination 10.0.30.123
- iptables -t nat -A POSTROUTING -p tcp --dport 8084 -d 10.0.30.123 -j SNAT --to-source 10.0.30.106
- iptables -t nat -A PREROUTING -p udp -m multiport --dport 10800:11199 -j DNAT --to-destination 10.0.30.123
- iptables -t nat -A POSTROUTING -p udp -m multiport --dport 10800:11199 -d 10.0.30.123 -j SNAT --to-source 10.0.30.106
- iptables -A FORWARD -p udp -s 10.0.30.123 -j ACCEPT
- iptables -A FORWARD -p udp -m multiport --dport 10800:11199 -d 10.0.30.123 -j ACCEPT
- ip6tables -t nat -A PREROUTING -p tcp --dport 8082 -j DNAT --to-destination 2474:d865:a865:1:30::121
- ip6tables -t nat -A POSTROUTING -p tcp --dport 8082 -d 2474:d865:a865:1:30::121 -j SNAT --to-source 2474:d865:a865:1:30::106
- ip6tables -t nat -A PREROUTING -p udp -m multiport --dport 10000:10399 -j DNAT --to-destination 2474:d865:a865:1:30::121
- ip6tables -t nat -A POSTROUTING -p udp -m multiport --dport 10000:10399 -d 2474:d865:a865:1:30::121 -j SNAT --to-source 2474:d865:a865:1:30::106
- ip6tables -A FORWARD -p udp -s 2474:d865:a865:1:30::121 -j ACCEPT
- ip6tables -A FORWARD -p udp -m multiport --dport 10000:10399 -d 2474:d865:a865:1:30::121 -j ACCEPT
- ip6tables -t nat -A PREROUTING -p tcp --dport 8083 -j DNAT --to-destination 2474:d865:a865:1:30::122
- ip6tables -t nat -A POSTROUTING -p tcp --dport 8083 -d 2474:d865:a865:1:30::122 -j SNAT --to-source 2474:d865:a865:1:30::106
- ip6tables -t nat -A PREROUTING -p udp -m multiport --dport 10400:10799 -j DNAT --to-destination 2474:d865:a865:1:30::122
- ip6tables -t nat -A POSTROUTING -p udp -m multiport --dport 10400:10799 -d 2474:d865:a865:1:30::122 -j SNAT --to-source 2474:d865:a865:1:30::106
- ip6tables -A FORWARD -p udp -s 2474:d865:a865:1:30::122 -j ACCEPT
- ip6tables -A FORWARD -p udp -m multiport --dport 10400:10799 -d 2474:d865:a865:1:30::122 -j ACCEPT
- ip6tables -t nat -A PREROUTING -p tcp --dport 8084 -j DNAT --to-destination 2474:d865:a865:1:30::123
- ip6tables -t nat -A POSTROUTING -p tcp --dport 8084 -d 2474:d865:a865:1:30::123 -j SNAT --to-source 2474:d865:a865:1:30::106
- ip6tables -t nat -A PREROUTING -p udp -m multiport --dport 10800:11199 -j DNAT --to-destination 2474:d865:a865:1:30::123
- ip6tables -t nat -A POSTROUTING -p udp -m multiport --dport 10800:11199 -d 2474:d865:a865:1:30::123 -j SNAT --to-source 2474:d865:a865:1:30::106
- ip6tables -A FORWARD -p udp -s 2474:d865:a865:1:30::123 -j ACCEPT
- ip6tables -A FORWARD -p udp -m multiport --dport 10800:11199 -d 2474:d865:a865:1:30::123 -j ACCEPT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement