LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-04-2013, 06:54 PM   #1
Atdeb
LQ Newbie
 
Registered: Jun 2003
Posts: 3

Rep: Reputation: 0
Sharing internet connection from eth1 with a router connected to eth0


I recently moved into a building with a shared internet connection where I can only connect one computer directly into an Ethernet port in the wall, and not a router. What I'd like to do is connect a computer with two network cards, plug the internet into eth1, and connect my router to eth0. I'd like the other computers connected to the router to be able to both access the Internet and share files with each other, so that I have the same functionality I did before when I had a cable modem and all my computers connected to the router.

I'm using Crunchbang, based on Debian 7.1, on the computer with the two network cards. I've been using Linux for a long time and I'm not afraid of using a command line or editing config files but I've never needed a network configuration that hasn't "just worked" without extra setup so I'm not really sure where to start.

Edit: If it matters, I generally route all my traffic through an offshore VPN to stop Big Brother from watching my Internet traffic, except when I occasionally disable it to use websites that treat visitors from outside the US differently.

Last edited by Atdeb; 10-04-2013 at 07:13 PM.
 
Old 10-04-2013, 07:25 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
i would consider http://www.ipfire.org/ its a hardware firewall setup. the wall jack should treat it as a computer instead of a "router".

then with the 2nd NIC you could just run the LAN side NIC into a switch and be set. IPFire will handle your internal DNS and DHCP if you dont wish to run static IPs.
 
Old 10-06-2013, 06:35 PM   #3
Atdeb
LQ Newbie
 
Registered: Jun 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lleb View Post
i would consider http://www.ipfire.org/ its a hardware firewall setup. the wall jack should treat it as a computer instead of a "router".

then with the 2nd NIC you could just run the LAN side NIC into a switch and be set. IPFire will handle your internal DNS and DHCP if you dont wish to run static IPs.
I installed IPFire on an old netbook I wasn't using and this works great, except that my VPN is being blocked by IPFire. I can connect to the VPN fine, but once I'm connected, I can't access the Internet. This happens whether I'm using OpenVPN or PPTP, both of which my VPN provider supports. I've done some searching but all I can find are instructions for how to set up IPFire as a VPN client which isn't really what I'm looking for - I'd prefer to have individual computers connect to and disconnect from the VPN as needed. Any idea how I can reconfigure IPFire to fix this? I realize this question might be better asked on the IPFire forums but I thought you might know.
 
Old 10-06-2013, 09:01 PM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
sadly Im an IPCop user, and have not upgraded to IPFire yet. There should be a way to allow for VPN pass through. I'd hit up either their forums or their mailing list.

Im glad the IPFire box is working for the LAN though. Ive been an IPCop user since 1998 or so. If its not broke im not going to fix it. I will upgrade to IPFire when my ISP starts rolling out IPv6 as IPCop does not handle IPv6.
 
  


Reply



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] Can't manage to set up a router (eth1 bridged w/ wlan0 connected to eth0 Internet) kummiliim Linux - Networking 3 09-12-2009 09:45 AM
sharing Internet connection with more than one client/playstation3 on eth0 bertandrews Linux - Newbie 1 03-25-2009 09:33 AM
Eth0 using DHCP and eth1 using static ip: eth0 receive internal ip not the router ip geraldomanaus Linux - Networking 3 04-23-2008 03:00 PM
Sharing internet connection (DSL router) betweeen two machines vharishankar Linux - Networking 7 12-15-2005 05:20 AM
Dhcp eth0 and XP eth1 internet sharing props666999 Slackware 8 08-20-2005 09:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:35 PM.

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