Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 01-06-2005, 08:59 AM   #1
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,064
Blog Entries: 1

Rep: Reputation: 90
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?

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


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 12:08 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