Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Understanding iptables Proposed Changes #7131

Open
mjkim610 opened this issue Oct 30, 2024 · 4 comments
Open

Understanding iptables Proposed Changes #7131

mjkim610 opened this issue Oct 30, 2024 · 4 comments

Comments

@mjkim610
Copy link

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.

@mjkim610
Copy link
Author

@Rajakavitha1
Copy link
Collaborator

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.

@mjkim610
Copy link
Author

mjkim610 commented Nov 13, 2024

Hi @Rajakavitha1

I think the die.net documentation is incorrect.

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)

@Rajakavitha1 Rajakavitha1 reopened this Nov 13, 2024
@mjkim610
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants