FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14175 questions

16819 answers

27670 comments

54159 members

0 votes
1,085 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!