Re: Firestarter on Fedora



You've not indicated any network masks, so I'm assuming they're /24. Is
there any specific reason you chose eth0 and eth1 of your Fedora box to be
of same network.

Would it be correct then to have eth0 as 192.168.0.3 and eth1 as
192.168.1.100, and the Windows computers as 192.168.1.101-110?

If you put your 'eth1' and your Windows boxen in different network
than 'eth0', you can setup internet connection sharing very easily.

Edit '/etc/sysctl.conf' and set 'net.ipv4.ip_forward' equals to '1'. This
will enable IPv4 packet forwarding between your interfaces. Now you need to
enable masquerading, to do this simply execute:

root# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Now try accessing internet from your other Windows box, if it works, you
need to save this firewall configuration, execute:

root# iptables-save >/etc/sysconfig/iptables

Above command will also overwrite your existing firewall rules. So it is
better to first create a desired firewall, using 'iptables' command, and
then save all rules at once using 'iptables-save'.


Thanks, I'll have a go (presumably this should "just work" if my
assumption about different networks (see above) is correct...?)

Chris

.



Relevant Pages

  • Re: Problem with multi-aliases network interfaces
    ... I'm using static ip's in all ifaces, and wpa_supplicant over eth1. ... only eth1 and eth0 configured with static ip's don't have problems. ... over diferent IP subnetworks, the "network" init script appear to forgot ...
    (Fedora)
  • Kernel upgrade 2.4.18-14 -> 2.4.23 (rh8)
    ... I just recompiled a new kernel, ... eth0: Broadcom BCM5701 Integrated Copper transceiver found ... eth1: Broadcom BCM5701 Integrated Copper transceiver found ... Dec 5 10:07:55 network: Setting network parameters: succeeded ...
    (RedHat)
  • Re: VOIP with a linksys PAP2
    ... >>automatically configured by DHCP in his router, ... configured eth0 to use DHCP). ... to a single network interface (each network interface has a unique MAC ... via eth1) in order for your PAP2 to be configured correctly. ...
    (Fedora)
  • Any help with this?
    ... What I was doing is one of the linux servers has 2 network cards (Eth0 ... and eth1) Eth0 is connected to the firewall. ... I was advised to try and put eth1 on a seperate subnet. ...
    (alt.os.linux)
  • Re: How to disable the NIC, then the connection is normal ?
    ... Now, due to the envoriment problem, the eth1 need to be disable at this moment, so I try to do the following config ... After reboot the network function, the server machine can't to connect with Internet again: ... messing with eth0 instead. ... Second, make sure the default gateway is set up correctly, as your problem sounds like it's not being set. ...
    (Fedora)