Z
Size: a a a
Z
w❤
w❤
w❤
w❤
w❤
# Accept all traffic first to avoid ssh lockdown via iptables firewall rules #
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
# Flush All Iptables Chains/Firewall rules #
iptables -F
# Delete all Iptables Chains #
iptables -X
# Flush all counters too #
iptables -Z
# Flush and delete all nat and mangle #
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables iptables -t raw -F
iptables -t raw -X
w❤
Z
Z
Z
w❤
iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
w❤
w❤
w❤
echo 1 > /proc/sys/net/ipv4/ip_forward
либо sysctl net.ipv4.ip_forward=1
w❤
w❤
w❤
iptables -P FORWARD ACCEPT
чтоб ходили всеiptables -A FORWARD -s 192.168.1.2 -j ACCEPT
чтоб ходили только те, кому "можно", где вместо 192.168.1.2 адрес твоего клиентаw❤
w❤
w❤