Old 14th May 2011, 00:30
Shadowtrooper Shadowtrooper is offline
Junior Member
Join Date: May 2011
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Post 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!!!!

Last edited by Shadowtrooper; 14th May 2011 at 19:27. Reason: change the title
Reply With Quote
Sponsored Links
Old 15th May 2011, 13:53
eyeoncomputers eyeoncomputers is offline
Junior Member
Join Date: May 2011
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post

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

-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 80 -s -j REJECT
-s is for source host, and you can specify some ip address
Solaris ZFS How To
Reply With Quote
The Following User Says Thank You to eyeoncomputers For This Useful Post:
Shadowtrooper (15th May 2011)



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

All times are GMT +2. The time now is 18:36.

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