I
I
Igor Petrov2017-06-15 23:40:42
linux
Igor Petrov, 2017-06-15 23:40:42

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

1 answer(s)
I
Igor Petrov, 2017-06-15
@daniks

Figured it out using:
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question