mirror of
https://github.com/llccd/netfilter-full-cone-nat
synced 2024-11-21 15:25:04 +00:00
Update README.md
This commit is contained in:
parent
671a13cff8
commit
dc8a5fbc59
11
README.md
11
README.md
@ -1,11 +1,12 @@
|
||||
|
||||
Implementation of full cone SNAT. Currently only UDP is supported and actions for other protos are like MASQUERADE.
|
||||
Implementation of full cone SNAT.
|
||||
|
||||
Assume eth0 is external interface:
|
||||
Assuming eth0 is external interface:
|
||||
```
|
||||
iptables -t nat -A POSTROUTING -o eth0 -j FULLCONENAT #same as MASQUERADE
|
||||
iptables -t nat -A PREROUTING -i eth0 -j FULLCONENAT
|
||||
iptables -t nat -A PREROUTING -i eth0 -j FULLCONENAT #automatically restore NAT for inbound packets
|
||||
```
|
||||
Currently only UDP traffic is supported for full-cone NAT. For other protos FULLCONENAT is equivalent to MASQUERADE.
|
||||
|
||||
Build
|
||||
======
|
||||
@ -74,12 +75,12 @@ IPtables extension
|
||||
Usage
|
||||
=====
|
||||
|
||||
Assume eth0 is external interface:
|
||||
Assuming eth0 is external interface:
|
||||
|
||||
Basic Usage:
|
||||
|
||||
```
|
||||
iptables -t nat -A POSTROUTING -o eth0 -j FULLCONENAT #same as MASQUERADE
|
||||
iptables -t nat -A POSTROUTING -o eth0 -j FULLCONENAT
|
||||
iptables -t nat -A PREROUTING -i eth0 -j FULLCONENAT
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user