N
N
Newbeenew2019-05-14 15:10:00
ubuntu
Newbeenew, 2019-05-14 15:10:00

Why doesn't the rule from rc.local work?

Hello, tell me plz:
there is ubuntu 16.04.5 LTS and the following rule does not work in it from rc.local: iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
if from the console, then everything is fine. What could it be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fixid, 2019-05-14
@Fixid

This command must be written in /etc/network/interfaces

post-up 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