Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-30-2004, 03:44 PM   #1
LQ Newbie
Registered: Oct 2004
Posts: 8

Rep: Reputation: 0
blocking and allowing ports

how would i go about making a small custom firewall? i have a txt file containing a list of ports along with an action stating whether to allow an IN, OUT, or BOTH connection. i understand i need to create a system call and/or modify the tcp_v4_rcv function but am unclear. can someone help me along or assist me in another approach? thanks!
Old 11-30-2004, 04:04 PM   #2
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there

shorewall is easy and a good firewall
have look at and chek out its docs

Old 11-30-2004, 04:16 PM   #3
LQ Newbie
Registered: Oct 2004
Posts: 8

Original Poster
Rep: Reputation: 0
thanks but i dont want a program. i need to make it myself (its also for a project) and i'm relatively new to linux. i just need to understand how to block and allow ports using the structaddr module
Old 11-30-2004, 04:24 PM   #4
Senior Member
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
Guarddog (which requires some of the KDE stuff, but not the KDE desktop) is what I use. It makes it easy to customize iptables however you want your firewall set up.
Old 11-30-2004, 07:36 PM   #5
LQ Newbie
Registered: Nov 2004
Location: Ontario, Canada
Distribution: Mepis
Posts: 6

Rep: Reputation: 0
Everything you need to know --> Netfilter


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
blocking specific websites, but allowing internet access poiuytrewq Linux - General 6 09-01-2006 12:45 AM
Blocking port 80 on NAT and allowing browsing thru squid krishvij Linux - Networking 2 07-19-2005 06:10 AM
Allowing Data on Certain Ports bob4432 Linux - Networking 2 07-20-2004 02:30 PM
Allowing Outgoing ports in Smoothwall 0.9.9 AndyShark Linux - Security 2 10-06-2002 09:07 AM
Allowing outgoing ports in Smoothwall 0.9.9 AndyShark Linux - Networking 3 10-05-2002 06:56 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:23 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration