Open mjkim610 opened 1 month ago
Hi @mjkim610 Just checked the linux man pages and the built in chains for a NAT table does not include input chain.
https://linux.die.net/man/8/iptables
Closing this issue for now. Pleas feel free to reopen if any other issues needs to be addressed.
Hi @Rajakavitha1
I think the die.net documentation is incorrect.
iptables -t nat -L
shows the input chain
mj@pc:[~]: sudo 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
Please check the info above and let me know, thank you! (I don't think I have the privileges for reopening the issue)
iptables manpage v 1.8.7
nat:
This table is consulted when a packet that creates a new connection is encountered. It consists of four built-ins: PREROUTING (for altering packets as
soon as they come in), INPUT (for altering packets destined for local sockets), OUTPUT (for altering locally-generated packets before routing), and
POSTROUTING (for altering packets as they are about to go out). IPv6 NAT support is available since kernel 3.7.
related commit: https://git.netfilter.org/iptables/commit/?id=d7b813f0a097f81c5781a6a6f08c1d41a4affead
Link: https://www.linode.com/docs/guides/what-is-iptables/
Issue
In the image in the Tables section, the NAT table only contains the output, prerouting, and postrouting chain. It should also include the input chain.
Suggested Fix
The NAT table should also include the input chain.