| Author |
Message |
Ophidian14
Joined: 05 Jun 2008
Posts: 10
|
| Posted: Thu Jun 05, 2008 9:58 pm Post subject: 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. |
|
| Back to top |
|
rjp
Joined: 15 Aug 2003
Posts: 102
|
| Posted: Fri Jun 06, 2008 7:23 am Post subject: |
|
|
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. |
|
| Back to top |
|
Ophidian14
Joined: 05 Jun 2008
Posts: 10
|
| Posted: Fri Jun 06, 2008 10:32 am Post subject: |
|
|
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). |
|
| Back to top |
|
Ophidian14
Joined: 05 Jun 2008
Posts: 10
|
| Posted: Fri Jun 06, 2008 11:04 am Post subject: |
|
|
Quote: 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. |
|
| Back to top |
|
| |