Page 1 of 1

Linux OpenVPN does not save comands!!!

Posted: Fri Sep 18, 2020 9:28 am
by Marius2222
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:

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
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!!!

Re: Linux OpenVPN does not save comands!!!

Posted: Fri Sep 18, 2020 9:42 am
by Marius2222
Or maybe is because of this error?

Code: Select all

DEPRECATED OPTION: --cipher set to 'AES-256-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM). Future OpenVPN version will ignore --cipher for cipher negotiations. Add 'AES-256-CBC' to --data-ciphers or change --cipher 'AES-256-CBC' to --data-ciphers-fallback 'AES-256-CBC' to silence this warning.

Re: Linux OpenVPN does not save comands!!!

Posted: Fri Sep 18, 2020 10:44 am
by Marius2222
i have checked my first post and tested again the settings are getting saved but no connection after reboot until I reapply them wonder why.....

Re: Linux OpenVPN does not save comands!!!

Posted: Fri Sep 18, 2020 11:11 am
by TinCanTech
Try searching for "Save iptables"