Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IPTABLES - FORWARD

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
scooter



Joined: Wed May 06, 2009 11:32 am
Posts: 23
Location: Scottish Borders

PostPosted: Tue Dec 03, 2013 6:39 pm    Post subject: IPTABLES - FORWARD Reply with quote

Merry Christmas and all that !!

I'm hoping someone can solve a problem I have with IPTABLES.
Running Centos5.9 and have MASQUERADE between eth0 & eth1 with port forwarding for specific ports.

This works fine with IPTABLES -P FORWARD ACCEPT. As soon as I set IPTABLES -P FORWARD DROP the specific ports don't get forwarded.

I thought that IPTABLES "read" from top to bottom and everything before the [ DROP ] would be accepted. Rolling Eyes
Back to top
View user's profile Send private message
sledgehammer



Joined: Fri Jul 28, 2006 3:03 pm
Posts: 46

PostPosted: Sat Dec 07, 2013 6:20 pm    Post subject: Reply with quote

Its been a while since I played with IPTABLES but I think you are setting a default policy of DROP so this will always happen regardless of any other IPTABLE entries on the FORWARD chain.
Back to top
View user's profile Send private message
scooter



Joined: Wed May 06, 2009 11:32 am
Posts: 23
Location: Scottish Borders

PostPosted: Sat Dec 07, 2013 10:53 pm    Post subject: Reply with quote

Thanks for the reply.

Does that mean that it's only FORWARD DROP that kills everything as I have INPUT DROP and I get inputs accepted.

I load the " accept " entries before the " drop " entries.
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
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
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast