Closed RPallas92 closed 3 months ago
Thank you @RPallas92 .
This doesn't seem to be correct — I get the following error:
iptables v1.8.10 (legacy): Can't use -i with POSTROUTING
The manual page for iptables also states:
[!] -i, --in-interface name
Name of an interface via which a packet was received (only
for packets entering the INPUT, FORWARD and PREROUTING
chains). [...]
So I think this change should be reverted to avoid further confusion.
@0xb8 Yes, I did a test and this also failed on my machine. So reverting the change.
@RPallas92 Maybe you can use source IP for masking, but -i
does not appears to work.
This PR updates the README to include the
-i tun0
option in iptables and ip6tables commands. The change ensures NAT rules apply only to traffic from thetun0
interface on the Phantun client host.Updated Commands: