Linux OpenVPN does not save comands!!!

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
Marius2222
OpenVpn Newbie
Posts: 3
Joined: Fri Sep 18, 2020 9:23 am

Linux OpenVPN does not save comands!!!

Post by Marius2222 » 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:

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

Marius2222
OpenVpn Newbie
Posts: 3
Joined: Fri Sep 18, 2020 9:23 am

Re: Linux OpenVPN does not save comands!!!

Post by Marius2222 » Fri Sep 18, 2020 9:42 am

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.

Marius2222
OpenVpn Newbie
Posts: 3
Joined: Fri Sep 18, 2020 9:23 am

Re: Linux OpenVPN does not save comands!!!

Post by Marius2222 » Fri Sep 18, 2020 10:44 am

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

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: Linux OpenVPN does not save comands!!!

Post by TinCanTech » Fri Sep 18, 2020 11:11 am

Try searching for "Save iptables"

Post Reply