LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-28-2012, 05:36 AM   #1
dushyantgohil
Member
 
Registered: Aug 2011
Location: India
Distribution: Cent OS & Ubuntu
Posts: 107

Rep: Reputation: 3
Internet Sharing via Ethernet Card


Hi,

i want to share my internet connection from my cent os server without using any proxy applications. is it possible? please rply

thanks.
 
Old 08-28-2012, 08:04 AM   #2
seeberg
LQ Newbie
 
Registered: Sep 2010
Posts: 14

Rep: Reputation: 3
If i understand you correctly you want your server to act as a router for your internel network. echo 1 > /proc/sys/net/ipv4/ip_forward. But you shuld really Google "centos router"
 
Old 08-28-2012, 09:56 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,991

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
To expand on seeberg's post a bit. http://www.howtoforge.com/internet-c...ading-on-linux

I forget the name but there is a way to do it also with nat and a way to set it up for two nic's to share traffic. I have a hard time finding it in windows and can never find it in linux.

http://www.cyberciti.biz/faq/rhel-fe...sharing-howto/

There might be more than a few ways too.
 
Old 08-30-2012, 04:42 AM   #4
dushyantgohil
Member
 
Registered: Aug 2011
Location: India
Distribution: Cent OS & Ubuntu
Posts: 107

Original Poster
Rep: Reputation: 3
ok let me check with these.

Thnaks for the reply
 
Old 08-30-2012, 12:08 PM   #5
clocker
Member
 
Registered: Sep 2011
Distribution: fedora, redhat, mint
Posts: 87

Rep: Reputation: Disabled
Accept ip forwarding like seeberg said,
Quote:
echo 1 > /proc/sys/net/ipv4/ip_forward
You must have two Ethernet cards an external one to receive internet and an internal one to distribute it.
Configure eth0
Configure eth1

Flash iptable rules and put new rules

visit www.youtube.com for videos on how to nat.

Last edited by clocker; 08-30-2012 at 12:09 PM. Reason: typo
 
  


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
sharing mac internet through ethernet, dhcp stairwayoflight Linux - Networking 3 01-19-2008 03:46 PM
Sharing evdo internet card gr3ygh0s1 Linux - Wireless Networking 1 07-21-2007 06:43 PM
No internet connection, ethernet card id ok bacan SUSE / openSUSE 3 06-03-2005 03:27 PM
DSL Ethernet USB Combo Router + Internet Sharing kenny_zzz Linux - Networking 0 02-28-2004 03:05 AM
Ethernet Card = Internet Access? tattooedpierre Linux - Hardware 6 06-08-2003 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:28 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