Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iptables openvpn and port forwarding
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: Tue May 19, 2015 1:57 am    Post subject: iptables openvpn and port forwarding Reply with quote

I use Plex Media Server. I forward that port, in my case 32401, so I can access this service remotely. however, I also use a VPN service from time to time. my problem is that I need access to certain forwarded ports (32401, 21, 22) when the vpn is up, however since that gateway is that of the vpn, server, I can not configure it.

there are two ways of going about this as I see:

1) when the vpn is running, use iptables to route traffic destined for the above ports away from tun0 and into eth0 instead.

2) use iptables to run one port (transmission at 54089) over tun0 and expose eth0 to the rest of the web; I really only use the vpn for torrents so either solution would work.

my deficit is in skill with iptables. any suggestions? thanks.
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