Using openVPN to bypass bloking firewall

Need help configuring your VPN? Just post here and you'll get that help.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
alexander07
OpenVpn Newbie
Posts: 2
Joined: Thu Jun 30, 2011 11:40 am

Using openVPN to bypass bloking firewall

Post by alexander07 » Thu Jun 30, 2011 12:23 pm

Hello Guys

Situation:

--ws----------{ Internet }----<-router->----------S1----S2-----------

- Workstation ws is connected somewhere on the Internet
- Both servers S1 and S2 are connected to the same public IP subnet pubip.
- The openVPN server S1 has a public IP address pubip1
- The application server S2 has a public IP address pubip2 an listens on TCP port 8245.
- The router interconnect the Internet and public subnet pubip. The router blocks all traffic from the Internet (from workstation ws) to the S2 socket pubip2:8245.

Question:
Can openVPN server be configured so that ws can establish VPN tunnel and than communicate w/ S2 on soket pubip2:8245?

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Using openVPN to bypass bloking firewall

Post by maikcat » Thu Jun 30, 2011 12:48 pm

hi there,


does your router (server side) performs NAT?

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

alexander07
OpenVpn Newbie
Posts: 2
Joined: Thu Jun 30, 2011 11:40 am

Re: Using openVPN to bypass bloking firewall

Post by alexander07 » Thu Jun 30, 2011 3:25 pm

maikcat wrote:hi there,


does your router (server side) performs NAT?

Michael.
No the router does not do any NAT-ing. The router in essence works as a firewall blocking unwanted traffic from the Internet to public subnet on which the servers S1 and S2 are connected.

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Using openVPN to bypass bloking firewall

Post by maikcat » Sun Jul 03, 2011 8:46 am

hi there,

due to the fact that your router doesnt performs any type of nat
and your servers have public ip addresses it will be a little tricky to accomplish what you want.

some thoughts..

you CAN use some type of portforwarding on your server,
to explain the above
if you use only one port of lets say server A,you can create your openvpn server
on server B ,connect on server B , and redirect port x from your server B to server A.
so the client will connect only to server B ,but with all traffic being encrypted through openvpn..

i dont know if your servers OS can support the above.

hope didnt confuse you

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

Post Reply