mirror of
https://github.com/dndx/phantun.git
synced 2025-01-18 22:09:30 +08:00
docs(readme): update README.md
to include incoming interface (-i tun0
) in client NAT commands example (#163)
Some checks are pending
Rust / build (push) Waiting to run
Some checks are pending
Rust / build (push) Waiting to run
This commit is contained in:
parent
90b93370ce
commit
8c7f4e98b3
@ -144,8 +144,8 @@ both IPv4 and IPv6 usage.
|
|||||||
#### Using iptables
|
#### Using iptables
|
||||||
|
|
||||||
```
|
```
|
||||||
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
|
iptables -t nat -A POSTROUTING -o eth0 -i tun0 -j MASQUERADE
|
||||||
ip6tables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
|
ip6tables -t nat -A POSTROUTING -o eth0 -i tun0 -j MASQUERADE
|
||||||
```
|
```
|
||||||
|
|
||||||
[Back to TOC](#table-of-contents)
|
[Back to TOC](#table-of-contents)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user