Difference between revisions of "Iptables -t nat -L"
Jump to navigation
Jump to search
Line 31: | Line 31: | ||
== Related == | == Related == | ||
− | + | *<code>/sbin/iptables -t nat -A POSTROUTING -s 192.10.10.0/24 -o [[eth0]] [[-j]] [[MASQUERADE]]</code> | |
== See also == | == See also == |
Revision as of 14:38, 4 October 2021
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
iptables -t nat -L -n -v
Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain INPUT (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination
Related
/sbin/iptables -t nat -A POSTROUTING -s 192.10.10.0/24 -o eth0 -j MASQUERADE
See also
Advertising: