OpenVPN Configuration Issue - Public IP
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I have configured an OpenVPN server in the cloud (Digital Ocean), using this guide.
I have downloaded the client 'ovpn' file, (client is also Ubuntu), and have established a connection ok. However, when I check my public IP from my client, the IP is still showing my dynamic IP assigned by my ISP. Is there a way for my external IP to be the public IP of my VPN server?
As the IP's from my ISP are always blocked by Spamhaus (I'm setting up a home Exchange server lab), I would like a dedicated, static IP provided via my OpenVPN server.
openvpn
add a comment |Â
up vote
0
down vote
favorite
I have configured an OpenVPN server in the cloud (Digital Ocean), using this guide.
I have downloaded the client 'ovpn' file, (client is also Ubuntu), and have established a connection ok. However, when I check my public IP from my client, the IP is still showing my dynamic IP assigned by my ISP. Is there a way for my external IP to be the public IP of my VPN server?
As the IP's from my ISP are always blocked by Spamhaus (I'm setting up a home Exchange server lab), I would like a dedicated, static IP provided via my OpenVPN server.
openvpn
What OS is your client running? What's the output ofip route
when you're connected?
â Vanessa Deagan
Mar 13 at 18:04
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have configured an OpenVPN server in the cloud (Digital Ocean), using this guide.
I have downloaded the client 'ovpn' file, (client is also Ubuntu), and have established a connection ok. However, when I check my public IP from my client, the IP is still showing my dynamic IP assigned by my ISP. Is there a way for my external IP to be the public IP of my VPN server?
As the IP's from my ISP are always blocked by Spamhaus (I'm setting up a home Exchange server lab), I would like a dedicated, static IP provided via my OpenVPN server.
openvpn
I have configured an OpenVPN server in the cloud (Digital Ocean), using this guide.
I have downloaded the client 'ovpn' file, (client is also Ubuntu), and have established a connection ok. However, when I check my public IP from my client, the IP is still showing my dynamic IP assigned by my ISP. Is there a way for my external IP to be the public IP of my VPN server?
As the IP's from my ISP are always blocked by Spamhaus (I'm setting up a home Exchange server lab), I would like a dedicated, static IP provided via my OpenVPN server.
openvpn
openvpn
edited Mar 13 at 16:19
![](https://i.stack.imgur.com/A4LiS.jpg?s=32&g=1)
![](https://i.stack.imgur.com/A4LiS.jpg?s=32&g=1)
pomsky
23.2k77299
23.2k77299
asked Mar 13 at 15:54
DMK
1
1
What OS is your client running? What's the output ofip route
when you're connected?
â Vanessa Deagan
Mar 13 at 18:04
add a comment |Â
What OS is your client running? What's the output ofip route
when you're connected?
â Vanessa Deagan
Mar 13 at 18:04
What OS is your client running? What's the output of
ip route
when you're connected?â Vanessa Deagan
Mar 13 at 18:04
What OS is your client running? What's the output of
ip route
when you're connected?â Vanessa Deagan
Mar 13 at 18:04
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
I don't know how your specific provider is set up to work, but the VPN connection is normally set up to route all traffic through the VPN.
Check if your ISP modem is the default gateway.
$ ip route
default via 192.168.0.1 dev wlo1 proto static metric 600
where 192.168.0.1 is my modem IP in this case. The VPN connection (tun0) should also be in this table if you've connected successfully.
Delete the default gateway, and if that fixes the IP issue (or if you can't connect at all), it means your traffic was being routed through your ISP.
$ sudo ip route del default via 192.168.0.1
You can add it again with
$ sudo ip route add default via 192.168.0.1
An ip route does indeed state that my home router is the default gateway (192.168.1.254). Deleting the route disconnects the VPN, and I'm unable to connect again until I add it back.
â DMK
Mar 13 at 17:35
Adding... push "redirect-gateway autolocal"... into the server config file has no effect either.
â DMK
Mar 13 at 17:36
Sounds like it might not have connected properly to the VPN. Might be useful to include in your question the output of "ip route" while you're connected to the VPN.
â Ratler
Mar 13 at 17:48
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
I don't know how your specific provider is set up to work, but the VPN connection is normally set up to route all traffic through the VPN.
Check if your ISP modem is the default gateway.
$ ip route
default via 192.168.0.1 dev wlo1 proto static metric 600
where 192.168.0.1 is my modem IP in this case. The VPN connection (tun0) should also be in this table if you've connected successfully.
Delete the default gateway, and if that fixes the IP issue (or if you can't connect at all), it means your traffic was being routed through your ISP.
$ sudo ip route del default via 192.168.0.1
You can add it again with
$ sudo ip route add default via 192.168.0.1
An ip route does indeed state that my home router is the default gateway (192.168.1.254). Deleting the route disconnects the VPN, and I'm unable to connect again until I add it back.
â DMK
Mar 13 at 17:35
Adding... push "redirect-gateway autolocal"... into the server config file has no effect either.
â DMK
Mar 13 at 17:36
Sounds like it might not have connected properly to the VPN. Might be useful to include in your question the output of "ip route" while you're connected to the VPN.
â Ratler
Mar 13 at 17:48
add a comment |Â
up vote
1
down vote
I don't know how your specific provider is set up to work, but the VPN connection is normally set up to route all traffic through the VPN.
Check if your ISP modem is the default gateway.
$ ip route
default via 192.168.0.1 dev wlo1 proto static metric 600
where 192.168.0.1 is my modem IP in this case. The VPN connection (tun0) should also be in this table if you've connected successfully.
Delete the default gateway, and if that fixes the IP issue (or if you can't connect at all), it means your traffic was being routed through your ISP.
$ sudo ip route del default via 192.168.0.1
You can add it again with
$ sudo ip route add default via 192.168.0.1
An ip route does indeed state that my home router is the default gateway (192.168.1.254). Deleting the route disconnects the VPN, and I'm unable to connect again until I add it back.
â DMK
Mar 13 at 17:35
Adding... push "redirect-gateway autolocal"... into the server config file has no effect either.
â DMK
Mar 13 at 17:36
Sounds like it might not have connected properly to the VPN. Might be useful to include in your question the output of "ip route" while you're connected to the VPN.
â Ratler
Mar 13 at 17:48
add a comment |Â
up vote
1
down vote
up vote
1
down vote
I don't know how your specific provider is set up to work, but the VPN connection is normally set up to route all traffic through the VPN.
Check if your ISP modem is the default gateway.
$ ip route
default via 192.168.0.1 dev wlo1 proto static metric 600
where 192.168.0.1 is my modem IP in this case. The VPN connection (tun0) should also be in this table if you've connected successfully.
Delete the default gateway, and if that fixes the IP issue (or if you can't connect at all), it means your traffic was being routed through your ISP.
$ sudo ip route del default via 192.168.0.1
You can add it again with
$ sudo ip route add default via 192.168.0.1
I don't know how your specific provider is set up to work, but the VPN connection is normally set up to route all traffic through the VPN.
Check if your ISP modem is the default gateway.
$ ip route
default via 192.168.0.1 dev wlo1 proto static metric 600
where 192.168.0.1 is my modem IP in this case. The VPN connection (tun0) should also be in this table if you've connected successfully.
Delete the default gateway, and if that fixes the IP issue (or if you can't connect at all), it means your traffic was being routed through your ISP.
$ sudo ip route del default via 192.168.0.1
You can add it again with
$ sudo ip route add default via 192.168.0.1
answered Mar 13 at 16:35
Ratler
9710
9710
An ip route does indeed state that my home router is the default gateway (192.168.1.254). Deleting the route disconnects the VPN, and I'm unable to connect again until I add it back.
â DMK
Mar 13 at 17:35
Adding... push "redirect-gateway autolocal"... into the server config file has no effect either.
â DMK
Mar 13 at 17:36
Sounds like it might not have connected properly to the VPN. Might be useful to include in your question the output of "ip route" while you're connected to the VPN.
â Ratler
Mar 13 at 17:48
add a comment |Â
An ip route does indeed state that my home router is the default gateway (192.168.1.254). Deleting the route disconnects the VPN, and I'm unable to connect again until I add it back.
â DMK
Mar 13 at 17:35
Adding... push "redirect-gateway autolocal"... into the server config file has no effect either.
â DMK
Mar 13 at 17:36
Sounds like it might not have connected properly to the VPN. Might be useful to include in your question the output of "ip route" while you're connected to the VPN.
â Ratler
Mar 13 at 17:48
An ip route does indeed state that my home router is the default gateway (192.168.1.254). Deleting the route disconnects the VPN, and I'm unable to connect again until I add it back.
â DMK
Mar 13 at 17:35
An ip route does indeed state that my home router is the default gateway (192.168.1.254). Deleting the route disconnects the VPN, and I'm unable to connect again until I add it back.
â DMK
Mar 13 at 17:35
Adding... push "redirect-gateway autolocal"... into the server config file has no effect either.
â DMK
Mar 13 at 17:36
Adding... push "redirect-gateway autolocal"... into the server config file has no effect either.
â DMK
Mar 13 at 17:36
Sounds like it might not have connected properly to the VPN. Might be useful to include in your question the output of "ip route" while you're connected to the VPN.
â Ratler
Mar 13 at 17:48
Sounds like it might not have connected properly to the VPN. Might be useful to include in your question the output of "ip route" while you're connected to the VPN.
â Ratler
Mar 13 at 17:48
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1014625%2fopenvpn-configuration-issue-public-ip%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
What OS is your client running? What's the output of
ip route
when you're connected?â Vanessa Deagan
Mar 13 at 18:04