[Solved] Single public IP on server for redirect gateway

Samples of working configurations.
sp1dergeek
OpenVPN User
Posts: 11
Joined: Mon Dec 02, 2013 3:16 pm

[Solved] Single public IP on server for redirect gateway

Postby sp1dergeek » Wed Feb 03, 2016 1:03 pm

I've moved an installation to server (Debian) which has a single public IP, and uses UFW (Uncomplicated Firewall) to block all but port 1194. (Previously I've only ever had experience with a private IP range behind an external firewall).

Trying to get my head around if this should work or not - with a "push" route surely the VPN wouldn't be able to communicate, but without it how does the client know to send all the traffic over the VPN?

Can anyone clarify this for me? What's the best practice in this environment?

User avatar
Traffic
OpenVPN Protagonist
Posts: 4081
Joined: Sat Aug 09, 2014 11:24 am

Re: Single public IP on server?

Postby Traffic » Wed Feb 03, 2016 8:11 pm

sp1dergeek wrote:Trying to get my head around if this should work or not
It will work .. the public IP of the server does not influence --push "redirect-gateway" as the gateway is set to the server VPN IP.

sp1dergeek
OpenVPN User
Posts: 11
Joined: Mon Dec 02, 2013 3:16 pm

Re: Single public IP on server?

Postby sp1dergeek » Wed Feb 03, 2016 9:26 pm

That's great, working nicely, thank you.

User avatar
Traffic
OpenVPN Protagonist
Posts: 4081
Joined: Sat Aug 09, 2014 11:24 am

Re: Single public IP on server?

Postby Traffic » Wed Feb 03, 2016 9:55 pm

Great .. thanks for letting us know 8-)


Return to “Examples”

Who is online

Users browsing this forum: No registered users and 1 guest