FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
1,253 views 3 comments
by
I want to make this entry in the command line persistent.

iptables -t nat -A POSTROUTING -s 10.0.8.0/24 -d 192.168.2.0/24 -j MASQUERADE

How to do it?

1 Answer

0 votes
by anonymous
You can add it to /etc/firewall.user
Best answer
by
What would the input to /etc/firewall.user look like then?
by anonymous
It's executed like script, you can add simply to this file:

iptables -t nat -I POSTROUTING -s 10.0.8.0/24 -d 192.168.2.0/24 -j MASQUERADE
by
Allright. Thank you!