FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

12682 questions

15066 answers

24137 comments

47099 members

0 votes
1,016 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
You can add it to /etc/firewall.user
Best answer
by
What would the input to /etc/firewall.user look like then?
by
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!