Х
Size: a a a
Х
R
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 192.168.0.2:80
iptables -t nat -A PREROUTING -p udp --dport 53 -j DNAT --to-destination 192.168.0.2:53
iptables -t nat -A PREROUTING -p tcp --dport 53 -j DNAT --to-destination 192.168.0.2:53
iptables -t nat -A POSTROUTING -j MASQUERADE
iptables -A FORWARD -i wlan0 -j DROP
A
A
Х
VS
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 192.168.0.2:80
iptables -t nat -A PREROUTING -p udp --dport 53 -j DNAT --to-destination 192.168.0.2:53
iptables -t nat -A PREROUTING -p tcp --dport 53 -j DNAT --to-destination 192.168.0.2:53
iptables -t nat -A POSTROUTING -j MASQUERADE
iptables -A FORWARD -i wlan0 -j DROP
R
VS
VS
VS
VS
A
A
A
A
A
A
A
A
A