Answer the question
In order to leave comments, you need to log in
Is it possible to change source IP to Interface?
Good day!
Please tell me, there is a postrouting rule:
iptables -A POSTROUTING -t nat -j SNAT --to-source 10.10.10.10
How can I specify an interface instead of source IP?
I will be very grateful for your help
Answer the question
In order to leave comments, you need to log in
Figured it out using:
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question