LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 09:59 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
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?

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

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

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