LinuxQuestions.org
Help answer threads with 0 replies.
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 11-27-2005, 09:08 AM   #1
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 676
Blog Entries: 7

Rep: Reputation: 32
Simple question about firewalls


I have a simple router setup, using the following

eth0 = local
eth1 = external

I want to be able to ftp and ssh the router from the internet so I set the rules to accept those two and then drop everything else on eth1.

What about eth0, I have a local webserver on port 8080 should I use the same procedure ...I mean block everything exept port 8080.

Note: I used my linux box before with only one interface , but now Iadded a second computer and I want to setup my firewall. I will setup NAT later
 
Old 11-27-2005, 09:19 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
The only controls you will need on eth0 are outgoing restrictions.. eg blocking access to external services..

For users on eth0 they will need SNAT on eth1 to be able to access the internet, and make sure ip_forward is on.
 
Old 11-27-2005, 09:24 AM   #3
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 676

Original Poster
Blog Entries: 7

Rep: Reputation: 32
Ok thanks I got that...another question if you do not mind....do I need to setup established and state for a state firewall....or can I do it without them......
 
Old 11-27-2005, 10:02 AM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Usually you need to allow ESTABLISHED & RELATED if you have a DROP policy. It saves many port by port rules.
NEW connections have to be handled one by one in the rules.
 
Old 11-27-2005, 02:08 PM   #5
ALInux
Member
 
Registered: Nov 2003
Location: Lebanon
Distribution: RHEL 5/CentOS 5/Debian Lenny/(K)Ubuntu Is Dead/Mandriva 10.1
Posts: 676

Original Poster
Blog Entries: 7

Rep: Reputation: 32
Ok thanks for the help..Ive read a couple of tutorials...but there are things that can only be deduced through discussions with experienced users like you...
Thanks again
 
  


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
Question about firewalls for DSL connection tigerflag Linux - Security 5 10-11-2005 08:30 AM
Installing Programs - A simple question from my simple mind jmp875 Linux - Newbie 6 02-18-2004 09:03 PM
Newbie question on firewalls vincebs Linux - Newbie 4 01-22-2004 12:22 PM
Newbie question: Firewalls/security the_rydster Linux - Security 4 11-07-2003 11:13 AM
Linux Firewalls Question? noname Linux - Software 4 06-14-2002 10:54 PM

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

All times are GMT -5. The time now is 11:31 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