Answer the question
In order to leave comments, you need to log in
Correct iptables rule?
One network card - enp1s0 looks to the Internet, the other enp3s0 to the local network 192.168.1.0/24
Which rule is better and more correct to use for NATa local network?
All three work for me.
Answer the question
In order to leave comments, you need to log in
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -j SNAT --to-source IP_GATEWAY
masquerade
each time it determines the external address for each new connection, naturally this affects the speed of the network, with a short-term loss of the link, it masquerade
resets all open connections, because assumes that the address has already changed. masquerade
makes sense when IP_GATEWAY is dynamic.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question