Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
port forwarding and openvpn
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
deathraccoon
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2015
Posts: 90

PostPosted: Wed Mar 25, 2015 8:48 am    Post subject: port forwarding and openvpn Reply with quote

I use a vpn service. I need to set up port forwarding for a program. at the router, do I set this up to use the address of eth0 or tun0? am I correct in assuming I can't forward to an interface (tun0) which is on a different subnet than the gateway? the gateway is 10.0.0.1. tun0 is is 172.xx.x.xxx

thanks.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13498

PostPosted: Wed Mar 25, 2015 11:17 pm    Post subject: Reply with quote

Whether you can forward off-subnet depends on the device doing the forwarding. In most cases, you can do off-subnet forwarding if the return path will bring the traffic back through the forwarding device. Since you are dealing with multiple routes, you also need to arrange the forwarding so that the reverse path filter does the right thing. The simplest course would be to have the external user connect to the public VPN IP address and have the traffic forwarded back over the VPN link to you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum