firewall using Iptable and Ipchains ?

Taking care of your Linux box.

firewall using Iptable and Ipchains ?

Postby kashif » Fri Dec 12, 2003 12:51 am

Asslam 0 alaikum!
Dears friends
Please tell me how can I setup firewall using IPTABLE and IPCHAINS

and where can i find help in detail about these

Allah Hafiz
kashif
Naib Subedar
 
Posts: 305
Joined: Wed Oct 15, 2003 2:44 am
Location: Okara

Postby jargon » Fri Dec 12, 2003 5:18 am

what distro are you running?

If redhat , then you can easily run...
#: /usr/sbin/setup
and check the firewall section.
Then if you want to tweak your firewall rules check out the documentation.

Then once its set up you can always start or restart/stop the service from rc.d/

You have to also understand that IPTABLES is used for kernels 2.4.x , and IPCHAINS is for older 2.2.x kernels.
So odds are you are using 2.4.x , so dont even worry about IPCHAINS.

www.tldp.org
http://www.netfilter.org/ (Home to the netfilter/iptables project for 2.4-2.5 kernels)
jargon
jargon
Lieutenant Colonel
 
Posts: 691
Joined: Mon Oct 13, 2003 9:40 am

Re:

Postby LinuxFreaK » Fri Dec 12, 2003 11:06 pm

Dear Jargon,
Salam,

Great Answer, But man if he want to learn about IPChains then i think we have to give him the right path...any way its just my thinking....so don't take it hard ;) kashifm here is the Link of Tuturial IPChain's
hope help you to learn about IPChain's
Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby zaeemarshad » Fri Dec 12, 2003 11:32 pm

IPchains is deprecated along with the 2.2 kernel. IPtables is far more flexible and efficient than Ipchains and utilizes the new netfilter code in the 2.4 kernel. Rather IPTables is the usrspace tool for interfacing with the kernelspace netfilter. Take a look at this. Thats a really fine howto for iptables.
[url]
http://www.krnlpanic.com/tutorials/iptables.php [/url]

Regards
Zaeem
zaeemarshad
Lieutenant Colonel
 
Posts: 660
Joined: Sat Jul 06, 2002 12:35 pm
Website: http://zaeem.no-ip.org
WLM: zarshadvirk@hotmail.com
Yahoo Messenger: negativecreep61@yahoo.com
AOL: zarshadvirk
Location: Islamabad

help about implementing firewall

Postby kashif » Sat Dec 13, 2003 2:03 am

Assalm 0 alaikum!
Actualy I want to implemnet firewal at my Redhat 7.2.

But i Have no idea from where to start it.
Please tell me step by step configruation what should I do first and then and then
I just heard the name of IPtable and ipchains.
which should i use amount them and
What option availabe in these and what these means
Allah hafiz
Kashif Mumtaz
kashif
Naib Subedar
 
Posts: 305
Joined: Wed Oct 15, 2003 2:44 am
Location: Okara

Re: help about implementing firewall

Postby LinuxFreaK » Sat Dec 13, 2003 2:14 am

Dear Kashif,
Salam,

kashif wrote:Actualy I want to implemnet firewal at my Redhat 7.2.
Please tell me step by step configruation what should I do first


IPTables & IPChains and if you need step by step try The Linux Documentation Project and The netfilter/iptables Project (Home to the netfilter/iptables project for 2.4-2.5 kernels) and mind that you need to do every thing by your own self if you have problem in that then we will tell you the solution. so, please read the manuals first :) and try to implement Firewall.

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Re: help about implementing firewall

Postby eff » Tue Dec 16, 2003 7:56 pm

what type of firewall do you want to implement


1:- firewall for linux box act as router for internal users. and linux box box is conected to internet
2:- what if you want to use squid


complete scenario required so that proper iptables/ipchains commands can be posted
noman
eff
Cadet
 
Posts: 3
Joined: Tue Dec 16, 2003 6:45 pm
WLM: nau66@hotmail.com
Yahoo Messenger: nau66@yahoo.com
Location: Islamabad

Re: help about implementing firewall

Postby LinuxFreaK » Tue Dec 16, 2003 9:59 pm

Dear Eff,
Salam,

eff wrote:complete scenario required so that proper iptables/ipchains commands can be posted


Sir, I perfer you as well as every one on Linux Pakistan Forum that try to Read Stuffs and make a habit to do searching and try to learn it by your own self then you can help other peoples. and if you check Linux Pakistan Forum then there are already thread on which IPTables and IPChains Command has been posted for Squid....

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby kernel-trap » Thu Dec 25, 2003 4:19 pm

keep in mind that ipchains is used by 2.2.X kernel

iptables 2.4.x adn 2.6.X kernel

http://iptables-tutorial.frozentux.net/ ... orial.html
kernel-trap
Havaldaar
 
Posts: 105
Joined: Thu Dec 25, 2003 2:31 pm


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 2 guests

cron