mirror of
https://github.com/dndx/phantun.git
synced 2025-11-03 19:35:35 +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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user