A Tiny Firewall Rule help

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
eozb
DD-WRT Novice


Joined: 26 Feb 2015
Posts: 4

PostPosted: Fri Feb 27, 2015 9:03    Post subject: A Tiny Firewall Rule help Reply with quote
Hi,
I'm new to linux so i try to learn now,

I'm trying to add some rules for my firewall,

Can enlighten me please?(DDWRT 26138)


Iptables -A INPUT -m state --state INVALID -j DROP
Iptables -A INPUT -p tcp ! --syn -m state --state NEW -j DROP
Iptables -A INPUT  -p tcp --tcp-flags ALL ALL -j DROP


-Do i have to leave a space between each lines?(or write a #Comment before each lines?)

-Do i have to change the order any lines?(-m,-p,! confuses me)

Thank you,
Sponsor
killmasta93
DD-WRT User


Joined: 13 Feb 2015
Posts: 112

PostPosted: Sun Mar 01, 2015 19:04    Post subject: Reply with quote
what firewall rule are you trying to write? are you trying to separate ip from talking to each other?
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum