I am working on the replacement OpenVPN server for my daughter's old server.
I have it running according to the logs so I hope I am done now.
(Thanks for the feedback to my earlier queries!)

I am currently at home and will start the journey to her tomorrow so I would
like to test it here, but I have a different base LAN address than hers...
I need only a single line change in the conf to be able to test it but I
realized that there is only one config command that I need to change:

In the server.conf file I have these lines for the tunnel to reach Internet:

push "route 192.168.119.0 255.255.255.0"  #<= THIS Gives local LAN access
push "redirect-gateway def1 bypass-dhcp" #This enables access to Internet
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"

To simplify things, it would be preferable if I do not have to change any
config, so my question is the following:

Is there a way to do a config that will push the *current LAN address* for the
route command (with the last octet set to 0)?

If that is possible then the server would work correctly as soon as it starts on
her LAN (or for that matter on any LAN it starts on) without any need for a
config change....

IPTABLES can be set up without explicit LAN address specifiers, I believe.
Just a MASQUERADE rule for the nic.


-- 
Bo Berglund
Developer in Sweden



_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to