Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-23-2014, 10:11 AM   #1
LQ Newbie
Registered: Nov 2014
Posts: 8

Rep: Reputation: Disabled
network bridge with proxy or vpn?

hello everyone,

my system with linux mint 17 has two physical network ports. the first port is connected with the router and offers the inet connection. the second port is for my amazon firetv. I want to build a network bridge where I can set a proxy or a vpn server. The background is that I need e.g. US IP for some reasons. I know there are maybe some apps for an rooted firetv, but I don't want touch my firetv box.

I'm glad about your help, thanks a lot!

Okay I found the option "shared to other computers" in network connections > connection > ipv4 settings > method. Now there is a option called "automatically connect to vpn .." under connection > general. Is the vpn channel only for this network device (for my firetv) or are all connections affected?

Last edited by andyvk; 11-23-2014 at 03:13 PM.
Old 11-24-2014, 03:00 PM   #2
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Rep: Reputation: 32
Your Mint17 will effectively end up with 3 network adapters. Two of those will be physical (eth0, eth1 or whatever the driver dictates) and one will be a point-to-point adapter. If you are using OpenVPN this will be tun0 or tap0. If you are using IPSec, it will be a ppp0 device.

You effectively want to manipulate the routing tables of your Min17 using "route add". Redirect the IP-Ranges for the TV by specifying that the vpn interface should be used (the vpn server should be the gateway).

To enable forwarding on the box:
echo 1 > /sys/net/ipv4/ip_forwarding
iptables -I FORWARD -i <ethx> -o <vpny> -j ACCEPT
iptables -I FORWARD -o <ethx> -i <vpny> -j ACCEPT

In order for this to work, you will propably need to masquerade outgoing packets to use the IP of the VPN interface. Take a look at the iptables manpage. I think it was something like:

iptables -t nat -A POSTROUTING -o <name of vpn interface> -j MASQUERADE

Take a look at the manual pages of route and iptables; they are both pretty thorough.
Old 12-01-2014, 09:36 AM   #3
LQ Newbie
Registered: Nov 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Okay, thanks a lot for your help ..I will check this in few weeks.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Two NICs - bridge and proxy lucmove Linux - Networking 4 05-09-2013 12:26 AM
vpn-vpn Bridge between two networks (1x Debian Server, 1x Cisco RVS4000) qawse Linux - Networking 2 01-14-2011 01:16 AM
Network Bridge with Proxy Problem newbiebd Red Hat 1 01-31-2009 06:54 AM
VPN Server on Bridge [FC7] aacable Linux - Server 0 07-28-2008 03:03 AM
difference between a bridge and proxy? GraemeK Linux - Networking 2 02-03-2004 08:11 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration