Linux OpenVPN does not save comands!!!
Posted: Fri Sep 18, 2020 9:28 am
Hello,
I have set up a new debian openVPN server and all is working good, I'm quite new to linux so bear with me please!
Everything works with one exception, in order to get internet access and network I have to apply the following commands:
Thing is I set them up and everything is good, but everytime I restart the server ( power it off, power loss, reboot etc ) my VPN stops working, the VPN connects and i get an IP but i have no internet connection until i reapply those commands after i reapply them i restore the connection..
I don't think they get saved.....
How can i make them save and last?
Anyone can help?
Thanks!!!
I have set up a new debian openVPN server and all is working good, I'm quite new to linux so bear with me please!
Everything works with one exception, in order to get internet access and network I have to apply the following commands:
Code: Select all
iptables -t nat -A POSTROUTING -o ens18 -j MASQUERADE
iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
iptables-save > /etc/iptables.up.rules
I don't think they get saved.....
How can i make them save and last?
Anyone can help?
Thanks!!!