Fedora Linux Support Community & Resources Center
  #1  
Old 27th July 2005, 09:12 AM
Henry2630's Avatar
Henry2630 Offline
Registered User
 
Join Date: May 2005
Location: Belgium
Age: 62
Posts: 82
Internet Connection Sharing

This may be a really stupid question, but I'm a "newbie" and if you don't ask, you never get an answer!

I've been using Internet Connection Sharing on W2K and XP for donkey's years and always taken it for granted that the ICS box has to have an IP Address of 192.168.0.1 and all workstations must have addresses in the 192.168.0.x range.

I don't want to have my workstations on a 192.168.0.x range, I want to have them on the same address range as my ADSL Router which is 192.168.2.1. Ideally I would like all my workstations on 192.168.2.10 to 192.168.2.199 and my servers / printers etc on 192.168.2.200 - 254

Can this be done? Can I leave my ADSL Router on 192.168.2.1, and let the ADSL Router's DHCP give me a (permanent) address of say 192.168.2.3 to my Public NIC and then can I give a static IP address of say 192.168.250 to the second Private NIC and let my DHCP Server hand out addresses in the range 192.168.2.10 to 192.168.2.199?

If this is possible, can someone point me to a URL or give me some clues as to how to do it. I also need to be able to forward ports to a different server for FTP and another for iPrint etc.
Reply With Quote
  #2  
Old 27th July 2005, 01:52 PM
gr8dude's Avatar
gr8dude Offline
Registered User
 
Join Date: Jul 2005
Location: Moldova, Chişinău
Posts: 30
Try with Firestarter [ http://www.fs-security.com/ ]

It can be done with a couple of clicks, I am playing with it myself. I still haven't succeeded - but i certainly know that this is the right tool.
__________________
he, who found a perfect woman, is a perfect man.
Reply With Quote
  #3  
Old 27th July 2005, 02:05 PM
Henry2630's Avatar
Henry2630 Offline
Registered User
 
Join Date: May 2005
Location: Belgium
Age: 62
Posts: 82
Nope, I actually use Firestarter, but it won't forward the Ports, it SAYS it is forwarding them, but it doesn't
Reply With Quote
  #4  
Old 31st July 2005, 11:16 AM
gr8dude's Avatar
gr8dude Offline
Registered User
 
Join Date: Jul 2005
Location: Moldova, Chişinău
Posts: 30
Now it works for me.

First of all, the problem was that on the other PC, I accidentally set the ip of the gateway to the ip of that machine, instead of the ip of the Fedora-box. However this is not the cause, because during the experiments I kept playing with ip's, and i am sure that the correct ip of the gateway was previously set.

What could be causing this is the following change
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/tcp_syncookies
And now everything works. I did do other changes to the system in the meantime, therefore I am not certain about the fact that this is the change that fixed it.. But this is all I can remember.

Let me know if this worked
__________________
he, who found a perfect woman, is a perfect man.
Reply With Quote
  #5  
Old 31st July 2005, 12:27 PM
Henry2630's Avatar
Henry2630 Offline
Registered User
 
Join Date: May 2005
Location: Belgium
Age: 62
Posts: 82
Do you have 2 NICS in your Internet Fedora box? Are they on 2 different networks like mine i.e 192.168.2.0 and 192.168.0.0?.

I've entered your two commands, but I have no way to test it until tomorrow. I'll let you know the outcome.
Reply With Quote
  #6  
Old 31st July 2005, 01:39 PM
gr8dude's Avatar
gr8dude Offline
Registered User
 
Join Date: Jul 2005
Location: Moldova, Chişinău
Posts: 30
yes, two distinct network cards on two distinct networks:

eth0: 5.74.2.37 [255.255.255.0], goes to the internet via pppoe
eth1: 10.200.1.129 [255.0.0.0], for the LAN

I use ppp0 as my external connection, and eth1 as my local connection.
Reply With Quote
Reply

Tags
connection, internet, sharing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Connection Sharing debudayan Using Fedora 2 11th May 2007 02:02 PM
internet connection sharing stever Servers & Networking 9 19th April 2006 09:53 PM
internet connection sharing graemekeatley Servers & Networking 2 30th July 2005 12:34 AM
Sharing an Internet Connection lowcam Servers & Networking 2 25th April 2005 04:27 PM
Internet Connection Sharing backroger Servers & Networking 2 5th March 2005 02:20 PM


Current GMT-time: 20:59 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat