Untitled

Anonymous
Plain Text
02/21/2024 8:20 AM
778 B
48
Indexable
Never
# sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1
#
#
# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination

Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
SNAT       all  --  192.168.0.0/24       anywhere             to:65.20.87.158
SNAT       all  --  192.168.0.0/24       anywhere             to:65.20.87.158
MASQUERADE  all  --  anywhere             anywhere
MASQUERADE  all  --  anywhere             anywhere
MASQUERADE  all  --  anywhere             anywhere
MASQUERADE  all  --  192.168.2.0/24       anywhere
#
Editor is loading...
Leave a Comment