Can someone confirm this will work?

I'd like to get a Linode with two public IP's. The first IP will be for the Linode itself, and I'd like to set up an OpenVPN server on my Linode, and assign the second public IP to the client that connects via OpenVPN. Therefore, the client has a public-facing IP no matter where it connects from.

I searched around and several people seemed to be using OpenVPN in their posts, but I'm not sure if they were doing it quite this way, so I thought I'd ask first.

3 Replies

It would be possible. I have something slightly different - multiple clients can connect via OpenVPN, communicate with one another via the VPN using 10.x.x.x VPN addresses, and also reach the outside world via NAT through the secondary IP. One specific client gets a fixed VPN address, so that I can forward ports to it.

If you were only concerned with one client, you could have OpenVPN always assign the same 10.x.x.x address to it, and then configure static NAT in iptables to send traffic to and from the VPN client.

Well, I'd really rather not resort to assigning a 10.* address to the client, because then it has no knowledge of its real public IP address.

Also, I've seen a few posts saying the TUN/TAP driver is built into the supplied kernels – what about the bridging driver (i.e. the one that creates the "br0" interface in ifconfig?) This is what I'd prefer to use (i.e. bridging mode in OpenVPN, versus routing mode).

> Also, I've seen a few posts saying the TUN/TAP driver is built into the supplied kernels – what about the bridging driver (i.e. the one that creates the "br0" interface in ifconfig?) Ooh, I found an earlier post with all the kernel config options it – looks like it's there, great.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct