* fxp doesnt work & connection tracking
@ 2002-09-14 10:22 NagyZ
2002-09-14 10:58 ` Stewart Thompson
0 siblings, 1 reply; 3+ messages in thread
From: NagyZ @ 2002-09-14 10:22 UTC (permalink / raw)
To: netfilter
hi!
if i apply these rules, then incoming fxp's dont work (outgoing is still
work).. any idea?
:
iptables -N szabalyok
iptables -A szabalyok -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A szabalyok -p tcp --dport 21 -d <ip> -j ACCEPT
iptables -A szabalyok -p tcp --dport 22 -d <ip> -j ACCEPT
iptables -A szabalyok -p tcp --dport 1024: -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A szabalyok -j DROP
iptables -A INPUT -j szabalyok
iptables -A FORWARD -j szabalyok
other:
before that, i did:
modprobe ip_conntrack_ftp ports=21,etc,etc
modprobe ip_conntrack_irc ports=6667,6668,6669,7000,31337
but in lsmod i see:
ip_conntrack_irc 2400 0 (unused)
ip_conntrack_ftp 3136 0 (unused)
why is that? if i understand the howto correctly, it should be unused..
any idea?
NagyZ
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: fxp doesnt work & connection tracking
2002-09-14 10:22 fxp doesnt work & connection tracking NagyZ
@ 2002-09-14 10:58 ` Stewart Thompson
2002-09-14 11:58 ` NagyZ
0 siblings, 1 reply; 3+ messages in thread
From: Stewart Thompson @ 2002-09-14 10:58 UTC (permalink / raw)
To: NagyZ, netfilter
Hi:
I don't see any rules to accept new connections. You are only
allowing Established and Related connections. So another machine will
never be able to start a connection. I am not familiar with fxp. Is the
connection to your firewall machine, or forwarded to an internal machine?
The output might work because I don't see any rules here to prevent outgoing
connections. You might have to post your whole rule set so we can see
exactly what you are trying to do.
Stu.......
-----Original Message-----
From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org]On Behalf Of NagyZ
Sent: September 14, 2002 3:22 AM
To: netfilter@lists.netfilter.org
Subject: fxp doesnt work & connection tracking
hi!
if i apply these rules, then incoming fxp's dont work (outgoing is still
work).. any idea?
:
iptables -N szabalyok
iptables -A szabalyok -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A szabalyok -p tcp --dport 21 -d <ip> -j ACCEPT
iptables -A szabalyok -p tcp --dport 22 -d <ip> -j ACCEPT
iptables -A szabalyok -p tcp --dport 1024: -m state --state
ESTABLISHED,RELATED -j ACCEPT
iptables -A szabalyok -j DROP
iptables -A INPUT -j szabalyok
iptables -A FORWARD -j szabalyok
other:
before that, i did:
modprobe ip_conntrack_ftp ports=21,etc,etc
modprobe ip_conntrack_irc ports=6667,6668,6669,7000,31337
but in lsmod i see:
ip_conntrack_irc 2400 0 (unused)
ip_conntrack_ftp 3136 0 (unused)
why is that? if i understand the howto correctly, it should be unused..
any idea?
NagyZ
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: fxp doesnt work & connection tracking
2002-09-14 10:58 ` Stewart Thompson
@ 2002-09-14 11:58 ` NagyZ
0 siblings, 0 replies; 3+ messages in thread
From: NagyZ @ 2002-09-14 11:58 UTC (permalink / raw)
To: Stewart Thompson; +Cc: netfilter
On Sat, 14 Sep 2002, Stewart Thompson wrote:
> Hi:
>
> I don't see any rules to accept new connections. You are only
> allowing Established and Related connections. So another machine will
> never be able to start a connection.
i though fxp is RELATED type.. im trying to enable NEW too to 1024:
i'll write my results.
> I am not familiar with fxp. Is the
> connection to your firewall machine, or forwarded to an internal machine?
to my fw machine
there arent any lan or sg like that.
> The output might work because I don't see any rules here to prevent outgoing
> connections. You might have to post your whole rule set so we can see
> exactly what you are trying to do.
this is my whole ruleset :)
NagyZ
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-09-14 11:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-14 10:22 fxp doesnt work & connection tracking NagyZ
2002-09-14 10:58 ` Stewart Thompson
2002-09-14 11:58 ` NagyZ
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox