i neeeeeed help plzzzzzzz!!!

Discussion in 'HOWTO-Related Questions' started by Shadowtrooper, May 13, 2011.

  1. Shadowtrooper

    Shadowtrooper New Member

    how to make the internet go through the firwall to private network!!!

    hi all i am new with IP tables stuff and i have a problem....
    i have a pc Contain a fedora OS and i want to make a small network (4 PCs Contain XP OS) and using the pc of fedora OS as a firewall
    i want to Prevent the ping (i think it called(ICMP)) in the private network and prevent one of the PCs from Browsing internet(prevent port 80 and 81 as i think).
    and i still don't know how to make the internet go Through firewall to the private network...

    note: WAN = eth0
    LAN = eth1
    any one can help plzzzzzzz:confused::confused::confused:!!!!
     
    Last edited: May 14, 2011
  2. eyeoncomputers

    eyeoncomputers New Member

    For blocking an IP from accessing a web server (assuming port 80) you can do

    Code:
    -A RH-Firewall-1-INPUT -p tcp -m tcp --dport 80 -s 192.168.111.111 -j REJECT
    
    -s is for source host, and you can specify some ip address
     

Share This Page