LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-15-2004, 04:11 AM   #1
RajaRC
Member
 
Registered: Feb 2003
Distribution: Redhat
Posts: 58

Rep: Reputation: 15
how to configure firewall on single nic


Hi

I have a system with one single nic. I have decide to install linux on it and configure a firewall. I would like to know can I configure a firewall (ipcahain or iptables) on linux using a one nic. Also is it possible?

I don't want to add one more additional nic on this system due to some constraints.

Also is there any document to help me.

Regards,
 
Old 10-15-2004, 04:23 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
http://wiki.linuxquestions.org/wiki/Firewall
 
Old 10-15-2004, 05:14 AM   #3
RajaRC
Member
 
Registered: Feb 2003
Distribution: Redhat
Posts: 58

Original Poster
Rep: Reputation: 15
I have gone through the url, but the configurations are pertaining to two network interfaces. In my case I have only one network interface.

Does that mean I cannot configure firewall on one single network interface?

Regards,
Raja
 
Old 10-15-2004, 06:16 AM   #4
Mr. Gone
LQ Newbie
 
Registered: Mar 2004
Posts: 29

Rep: Reputation: 15
Quote:
Does that mean I cannot configure firewall on one single network interface?
No. You can use a firewall with one NIC, and even with no NIC.

Forget about 'ipchains' and focus yourself on 'iptables', which is the packet filtering tool used in most recent distributions. The page of the project is http://www.netfilter.org/, and you can find lots of documentation there. Most probably, 'iptables' will be already installed in your distro. You'll also find many frontends (graphic interfaces) for 'iptables', but my advice would be to forget about them all and concentrate instead in 'iptables' (which is what all these frontends will eventually use). It can seem difficult at the beginning, but if you do a little reading you'll grasp the basics quickly, and besides configuring one machine with 'iptables' is not very difficult.

Also, if you search in Google for something like "iptables script', you will find tons of scripts that you can use as model or inspiration for your own config.
 
  


Reply


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
NIC-Firewall-NIC I can't make it work! Z8002 Linux - Networking 3 06-28-2005 05:29 PM
Max # of IPs on a single NIC Risc91 Red Hat 3 03-14-2005 03:32 PM
Single NIC of Reverse Proxy Natterjack Toad Linux - Networking 0 10-28-2004 03:08 AM
2 live/public ips for single NIC ehpserver Linux - Networking 3 10-08-2003 07:00 PM
Multiple addresses for a single NIC grub Programming 1 08-04-2003 02:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:32 AM.

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