#1  
Old 13th February 2007, 11:45
sam_rag sam_rag is offline
Junior Member
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default internet sharing with centOS

Dear everyone!

i have been using adsl connection to share internet for whole network using gateway of 192.168.0.101 (for test purpose) with dns address 202.70.64.5
i tried internet browsing with a linux terminas(centOS) with ip 192.168.0.105

I want to use the linux as an internet gateway. so i tried using 2 ethernet cards so i configured them as
eth0: ip address: 192.168.0.105
eth1: ip address: 192.168.28.1
dns address: 202.70.64.5

i wanted to test if i could share the internet from another subnetwork with ip 192.168.28.2 via with gateway configured as 192.168.28.1

now i can ping from the remote computer to both 192.168.0.105 and 192.168.28.1

but internet sharing is not happening

i tried all the steps mentioned by http://www.howtoforge.com/nat_iptables

i wanted to make sure internet sharing happens.. so that i can completely shift to linux for internet sharing..

thanks in advance..
Reply With Quote
Sponsored Links
  #2  
Old 13th February 2007, 11:59
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

Quote:
dns address: 202.70.64.5
This address should be configured on one of your ethernet cards then ....
Did you get this address from your ISP?
Reply With Quote
  #3  
Old 14th February 2007, 07:57
sam_rag sam_rag is offline
Junior Member
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yeah that dns address was supplied by the isp provider
moreover, i believe there are something to do with the iptables and nat
could you please guide me the way?
thanks again

Last edited by sam_rag; 14th February 2007 at 11:49.
Reply With Quote
  #4  
Old 14th February 2007, 19:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

If you want to use your system as a router, you should try a distribution that is tailored for your needs such as IPCop.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 15th February 2007, 11:14
sam_rag sam_rag is offline
Junior Member
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hey it worked.. !
there was some conflicting regarding /etc/hosts file.
still more experimenting to do..
messenger etc are working
now i want to learn more..
Reply With Quote
  #6  
Old 18th February 2007, 06:27
sam_rag sam_rag is offline
Junior Member
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

now i am trying to install squid for proxy..
i downloaded and compiled..
i tried to follow http://www.visolve.com/squid/sqguide.php
but its kinda confusing for a starter like me..
i believe there are easier ways..
i would appreciate if you share your experience
thanks in advance..
Reply With Quote
  #7  
Old 19th February 2007, 14:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Isn't there a Squid package available for CentOS? That would save you from compiling Squid yourself.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet sharing and Gateway in Same ISPConfig Box Morons Installation/Configuration 7 21st September 2006 15:18
Warning CentOS 4.3 Installation d3m0nic HOWTO-Related Questions 3 19th April 2006 15:40
Install ISPConfig on CentOS Server, in brief gfts Tips/Tricks/Mods 11 4th April 2006 08:29
linux pc sharing its internet connection Ovidiu Technical 2 5th December 2005 16:43
Internet connection sharing fdawy Server Operation 5 27th September 2005 21:57


All times are GMT +2. The time now is 02:41.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.