PDA

View Full Version : Fedora - Internet Share - Windows XP


Sniffer
2004-09-28, 04:07 AM CDT
Hi to you all,

I'm using at this current moment Fedora (last version) with the kernel 2.6.8 and i have the follow problem:

My Fedora machine is connected directly to the internet by my USB Cable modem, wich is in Fedora the interface ETH1, my cable modem don't need any pass like in adsl, so it function by DHCP.

I have another Ethernet Card (3COM) that in fedora is recognized as interface ETH0, I have manually configured this card as IP: 192.168.0.1 with Subnet: 255.255.255.0

Connected to this interface ETH0 (3COM) is my ASUS WL330G Access Point (It's free from drivers....and i bought it just because of that) that is configured like infrastructure with the follow: IP:192.168.0.10 SubNet:255.255.255.0 Gateway:192.168.0.1


Then i have 2 windows XP (The workgroup is TDNETWORK) machines that see the Access Point but can't connect to the NET by it, take notice that i have tested the same settings that work but with My net Machine witrh Windows XP (Now with Fedora).

I have also go to the security settings on Fedora and put ETH0 as trusted...but i havent do anything manually on IPTABLES....

Any ideas on what i have to do to put this working...i know this must be Firewall bad configuration....i have to activate NAT on ETH1...but how to

If you need more details in order to help...please reply. Thanks.

Many Thanks.

superbnerd
2004-09-28, 04:41 AM CDT
You need to configure your firewall to use NAT. A very easy to use firewall is firestarter (http://firestarter.sourceforge.net). It site has a good tutorial about seting up NAT. You should install firestarter via yum (http://www.fedorafaq.org/#installsoftware) yum install firestarter

Sniffer
2004-09-28, 04:45 AM CDT
Many thanks for the help and quick reply.

I will try and post the results.

ThaRealest
2004-09-28, 04:57 AM CDT
yeh i have the same set up as you, cable modem on eth1 and network card eth0. set up ip forwarding and firestarter with NAT enabled but the other computers cant access the internet although can acces my files with samba. If you get it workin post exactly how u did it!!

Sniffer
2004-09-28, 03:14 PM CDT
[root@xxxx-xx-xx-xx~]# yum install firestarter
Setting up Install Process
Setting up Repo: livna-stable
repodata/repomd.xml: [Errno 4] IOError: HTTP Error 404: Not Found
repodata/repomd.xml: [Errno 4] IOError: HTTP Error 404: Not Found
Cannot open/read repomd.xml file for repository: livna-stable
failure: repodata/repomd.xml from livna-stable: [Errno 256] No more mirrors to try.
[root@xxxx-xx-xx-xx ~]#

After i have replaced yum.conf and as you see above i got the follow error when i try to install Firestarter.... :(

Sniffer
2004-09-28, 03:27 PM CDT
ok just install it manually

[root@a213-22-63-94 ~]# rpm -Uvh firestarter-0.9.3-1.i386
error: open of firestarter-0.9.3-1.i386 failed: No such file or directory
[root@a213-22-63-94 ~]# rpm -Uvh firestarter-0.9.3-1.i386.rpm
Preparing... ########################################### [100%]
1:firestarter ########################################### [100%]
[root@a213-22-63-94 ~]#

Sniffer
2004-09-28, 04:49 PM CDT
Ok everything is working now.

SO explained way:

1 - Install Firestarter
2 - Follow the wizard (see together the NAT explanation in the homepage of firestarter)
3 - Configure the client as follow:
Exemple:
IP: 192.168.0.2
sub:255.255.255.0
Gat:192.168.0.1

IMPORTANT: YOUR DNS NAME SERVER (You can find the IP in /etc/resolv.conf)
XXX:XXX:XXX:XXX
XXX:XXX.XXX.XXX

TIPS (That work for me, i don't know if it have any effect tough)

I have disabled the inbuild firewall in security option
i have installed dhcp (in the clean install), it's on the network packages

Hope it helps.

PS: In relation to yum why that error happens...can't put that to work.....
Question: it's better to use up2date to update my packages or yum to do that?

Many Thanks for the tip on yum and firestarter
Sniff

ThaRealest
2004-09-29, 04:14 AM CDT
can u post ur /etc/dhcpd.conf for me please. i am not sure if i have dhcp set up properly which might be my problem

as for yum, i think thats better to use than up2date. its certainly useful for downloading/installing packages and not having to worry about dependencies as it resolves them for you. if you haven't set it up i think it tells u how at http://fedorafaq.org

Tom

Sniffer
2004-10-04, 05:01 PM CDT
Sorry for the delay but only now i was able to answer correctly.

I have installed dhcp (network package) buit i'm not using it, so i don't have any dhcpd.conf in etc directory.

I have configured my clients and my ethernet card manually.

Did you try go manual instead of using DHCP??