LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 03-05-2010, 01:06 PM   #1
eagle06
LQ Newbie
 
Registered: Aug 2009
Posts: 10

Rep: Reputation: 0
Internet Connection sharing on RHEL 5


hi i am new to linux. my ifconfig of RHEL 5 is

Code:
   1.
      ifconfig
   2.
      eth0      Link encap:Ethernet  HWaddr 18:A9:05:3B:3F:DC  
   3.
                inet addr:172.31.1.15  Bcast:172.31.1.63  Mask:255.255.255.192
   4.
                inet6 addr: fe80::1aa9:5ff:fe3b:3fdc/64 Scope:Link
   5.
                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   6.
                RX packets:10873466 errors:0 dropped:0 overruns:0 frame:0
   7.
                TX packets:10469673 errors:0 dropped:0 overruns:0 carrier:0
   8.
                collisions:0 txqueuelen:1000
   9.
                RX bytes:950060837 (906.0 MiB)  TX bytes:4264116803 (3.9 GiB)
  10.
                Interrupt:138 Memory:f8000000-f8012100
  11.
       
  12.
      eth1      Link encap:Ethernet  HWaddr 18:A9:05:3B:3F:DE  
  13.
                inet addr:210.212.48.15  Bcast:210.212.48.63  Mask:255.255.255.192
  14.
                inet6 addr: fe80::1aa9:5ff:fe3b:3fde/64 Scope:Link
  15.
                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  16.
                RX packets:29798851 errors:0 dropped:0 overruns:0 frame:0
  17.
                TX packets:25584749 errors:0 dropped:0 overruns:0 carrier:0
  18.
                collisions:0 txqueuelen:1000
  19.
                RX bytes:3650344960 (3.3 GiB)  TX bytes:1549259280 (1.4 GiB)
  20.
                Interrupt:146 Memory:f6000000-f6012100
  21.
       
  22.
      lo        Link encap:Local Loopback  
  23.
                inet addr:127.0.0.1  Mask:255.0.0.0
  24.
                inet6 addr: ::1/128 Scope:Host
  25.
                UP LOOPBACK RUNNING  MTU:16436  Metric:1
  26.
                RX packets:20660 errors:0 dropped:0 overruns:0 frame:0
  27.
                TX packets:20660 errors:0 dropped:0 overruns:0 carrier:0
  28.
                collisions:0 txqueuelen:0
  29.
                RX bytes:6065924 (5.7 MiB)  TX bytes:6065924 (5.7 MiB)
my windows ip config is ( DNS IS 172.31.1.30)

Code:
Windows IP Configuration


Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . : 
   IPv4 Address. . . . . . . . . . . : 172.19.1.247
   Subnet Mask . . . . . . . . . . . : 255.255.248.0
   Default Gateway . . . . . . . . . : 172.19.0.1
i want to access internet on windows system through this RHEL system .

plz help me to do this..

Last edited by eagle06; 03-05-2010 at 02:41 PM.
 
Old 03-05-2010, 01:55 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,134

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
Quote:
Originally Posted by eagle06 View Post
hi im new to linux. my ifconfig of RHEL 5 is

i want to access internet on windows system through this RHEL system .

plz help me to do this..
Spell out your words.

And if you want to do this, load Squid, which is what you're looking for. Type in "yum install squid". Read one of the many how-to guides on how to configure it to suit your needs. Since you don't say what kind of access, authentication, etc., can't be more specific.
 
Old 03-05-2010, 02:40 PM   #3
eagle06
LQ Newbie
 
Registered: Aug 2009
Posts: 10

Original Poster
Rep: Reputation: 0
can i achieve that using iptables i dont want to use squid
 
Old 03-05-2010, 03:09 PM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,134

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
Quote:
Originally Posted by eagle06 View Post
can i achieve that using iptables i dont want to use squid
Again, you are providing no details, so how can anyone say?

You can do port-forwarding using iptables, but why bother? You'd have a pretty big list of ports to forward, no authentication, no tracking or anything else. If it's just two machines, you'd be better of spending $40 on a small router/swtich from Linksys/dLink, etc., and use it to share the connection.
 
Old 03-05-2010, 08:56 PM   #5
eagle06
LQ Newbie
 
Registered: Aug 2009
Posts: 10

Original Poster
Rep: Reputation: 0
the linux box is located in another building . It has the access to internet with eth1 configuration. I have full access to my linux system.
there are many routers/hubs between these two systems.
 
Old 03-06-2010, 10:30 AM   #6
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,134

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
Quote:
Originally Posted by eagle06 View Post
the linux box is located in another building . It has the access to internet with eth1 configuration. I have full access to my linux system.
there are many routers/hubs between these two systems.
Still, no real details.

As said in the first post, set up Squid.
 
Old 03-07-2010, 02:21 PM   #7
eagle06
LQ Newbie
 
Registered: Aug 2009
Posts: 10

Original Poster
Rep: Reputation: 0
my problem is if i setup squid i can access internet but cant play games like poker(face book) which uses 9339 port and other games.But i can play/access these games on linux pc but not on my windows pc which connects to squid for internet access.

Is there any other way like putty/ssh connection to play games like these?
 
Old 03-07-2010, 03:24 PM   #8
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,134

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
Quote:
Originally Posted by eagle06 View Post
my problem is if i setup squid i can access internet but cant play games like poker(face book) which uses 9339 port and other games.But i can play/access these games on linux pc but not on my windows pc which connects to squid for internet access.

Is there any other way like putty/ssh connection to play games like these?
You can open or allow any ports you want on a server you control, so not really seeing what the problem is.

Also, if this is for WORK, why are you playing games and using Facebook, while you're supposed to be working?
 
Old 03-08-2010, 04:50 AM   #9
eagle06
LQ Newbie
 
Registered: Aug 2009
Posts: 10

Original Poster
Rep: Reputation: 0
i setup a squid proxy and i can connect with proxy 172.31.1.15:8080.
but i cant access applications which uses other ports like some web apps ,games ,web OS.
 
Old 03-08-2010, 09:57 AM   #10
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,134

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
Quote:
Originally Posted by eagle06 View Post
i setup a squid proxy and i can connect with proxy 172.31.1.15:8080.
but i cant access applications which uses other ports like some web apps ,games ,web OS.
See previous post, about opening whatever ports you want, and try to get a clear picture of what a proxy server does, and how. If you just point a browser to it, that's all that'll get out. ANY and all applications need to be set up to use the proxy server. Read the Squid documentation about how to open additional ports, and how to do forwarding.
 
0 members found this post helpful.
Old 01-19-2011, 08:41 AM   #11
kaushalpatel1982
Member
 
Registered: Aug 2007
Location: INDIA
Distribution: CentOS, RHEL, Fedora, Debian, Ubuntu, LinuxMint, PCLinuxOS
Posts: 137

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

step 1 and 2 suffice your requirement.
 
  


Reply

Tags
help


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
Internet Connection sharing on RHEL 5 KinnowGrower Linux - Software 7 05-17-2008 12:37 PM
Internet connection sharing on RHEL 4 csghosh Linux - Networking 6 07-10-2006 10:11 PM
Sharing Internet Connection shun Linux - Networking 2 06-12-2006 06:59 AM
Internet Connection Sharing backroger Linux - Networking 2 02-25-2005 12:13 AM
Internet Connection Sharing ziox Linux - Networking 4 02-20-2005 08:38 AM


All times are GMT -5. The time now is 09:19 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration