[Solved] Single public IP on server for redirect gateway

Samples of working configurations.

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

Locked
sp1dergeek
OpenVpn Newbie
Posts: 11
Joined: Mon Dec 02, 2013 3:16 pm

[Solved] Single public IP on server for redirect gateway

Post by 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: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Single public IP on server?

Post by 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 Newbie
Posts: 11
Joined: Mon Dec 02, 2013 3:16 pm

Re: Single public IP on server?

Post by sp1dergeek » Wed Feb 03, 2016 9:26 pm

That's great, working nicely, thank you.

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

Re: Single public IP on server?

Post by Traffic » Wed Feb 03, 2016 9:55 pm

Great .. thanks for letting us know 8-)

Locked