Operating System - Linux
1748195 Members
4784 Online
108759 Solutions
New Discussion юеВ

Re: So... What do I need?

 
Leandro Sales
Advisor

So... What do I need?

...
...
iptables -N ALLOW_PORTS
iptables -F ALLOW_PORTS
iptables -A ALLOW_PORTS -m state --state NEW -p tcp --dport 137:139 -j ACCEPT
iptables -A ALLOW_PORTS -m state --state NEW -p upd --dport 137:139 -j ACCEPT
...
...

And now. Still not working...
3 REPLIES 3
G. Vrijhoeven
Honored Contributor

Re: So... What do I need?

Hi,

Could you be more specific, what kind of rules would you like te apply and wath are you trying to get to work?

Gideon
Marco Paganini
Respected Contributor

Re: So... What do I need?

Hello Leandro,

Two things:

1) I assume you're attaching this chain somehow to your interface later, right? If not, you should be using the INPUT chain

2) If you just put 'new' in the state, only the inbound connections will be accepted, but no data will flow back! You have to put NEW,ESTABLISHED,RELATED instead.

Hope it helps,
Paga
Keeping alive, until I die.
Leandro Sales
Advisor

Re: So... What do I need?

Sorry Vrijhoeven, this was a reply for the question "SAMBA AND IPTABLES..."