LinuxQuestions.org
Visit Jeremy's Blog.
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 01-06-2005, 08:59 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
iptables conntrack concepts question


I want to keep all traffic trying to establish a connection to my host from the internet to be dropped. This host is my lan's gateway.

eth0 is the internet interface
eth1 es my lan's interface.

Will this rule get what I want?

Code:
iptables -A INPUT -i eth0 -m conntrack --ctstate ! NEW -j ACCEPT
Or is this one better suited?
Code:
iptables -A INPUT -i eth0 -m conntrack --ctstate NEW -j DROP
or is there another even better suited?
 
  


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
pptp-conntrack-nat jobbe314 Linux - Networking 1 07-16-2005 09:37 AM
Port Forwarding Concepts Question carl.waldbieser Linux - Networking 8 07-06-2005 04:57 PM
boot concepts question rafc Linux - Newbie 1 04-14-2004 08:06 AM
firewall question: ip conntrack dareino Slackware 2 04-11-2004 07:30 PM
iptables & conntrack f1uke Linux - Security 2 12-02-2003 10:11 AM


All times are GMT -5. The time now is 01:46 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration