Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
778 B
2
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
#
Leave a Comment