LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-10-2005, 10:13 AM   #1
bobbyjayblack
LQ Newbie
 
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
Need help with iptables setup


I have 2 ethernet cards:
eth0 -> internet
eth1 <- laptop

Here is a little scheme of what I want the firewall/router to do:
eth0 <- internet Block unless DHCP or FTP info
eth0 -> internet Allow if from eth1 or from premade DHCP/FTP connections
eth1 <- laptop Allow All? (good idea or no? do I need to block dumb windows services like NETBIOS or w/e?)
eth0 -> laptop FORWARD 59, 113, 1024-5000; Allow if from premade laptop connection
Everything else should be Rejected
So how would I setup iptables for all of this?

I am a newbie when it comes to iptables, I just compiled my first linuxfromscratch.org system yesterday.

Thanks,
Bobby Black
 
Old 12-10-2005, 05:49 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
I think you need to see some of the sample scripts at the end of the http://iptables-tutorial.frozentux.n...-tutorial.html

You can set ports etc from there..
 
  


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
cant setup iptables srnerkar1 Linux - Security 6 11-17-2005 06:02 AM
iptables setup peok Linux - Networking 5 11-11-2003 11:00 PM
iptables setup chrismiceli Linux - Networking 2 07-01-2003 08:18 AM
iptables setup Tayl Linux - Networking 4 02-25-2003 09:13 PM
just need to setup IPTables and I'm done, but..... SprinterPD Linux - Networking 2 09-24-2001 06:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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