* FTP through Firewall
@ 2006-03-04 18:47 Davis Sylvester
2006-03-04 19:13 ` Cedric Blancher
2006-03-07 15:01 ` Aleksander
0 siblings, 2 replies; 3+ messages in thread
From: Davis Sylvester @ 2006-03-04 18:47 UTC (permalink / raw)
To: netfilter
I am trying to grant FTP access to Internet customers
to our servers behind our firewall.
When they try to connect they get the following error:
ftp: connect :Unknown error number
I am using the following iptables commands to allow
access. Our default policy is DENY.
iptables -A FORWARD -m state --state
RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -m state --state NEW -i eth4 -o
eth5 -d 1.1.1.2 -p tcp --dport ftp -j ACCEPT
iptables -t nat -A PREROUTING -i eth1 -d 208.1.1.1 -p
tcp --dport ftp -j DNAT --to 1.1.1.2
Thanks in advance!
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: FTP through Firewall
2006-03-04 18:47 FTP through Firewall Davis Sylvester
@ 2006-03-04 19:13 ` Cedric Blancher
2006-03-07 15:01 ` Aleksander
1 sibling, 0 replies; 3+ messages in thread
From: Cedric Blancher @ 2006-03-04 19:13 UTC (permalink / raw)
To: dsylvesteriii; +Cc: netfilter
Le samedi 04 mars 2006 à 10:47 -0800, Davis Sylvester a écrit :
> I am trying to grant FTP access to Internet customers
> to our servers behind our firewall.
> When they try to connect they get the following error:
> ftp: connect :Unknown error number
[...]
Have you insmoded ip_conntrack_ftp and ip_nat_ftp (or build them into
kernel) ?
--
http://sid.rstack.org/
PGP KeyID: 157E98EE FingerPrint: FA62226DA9E72FA8AECAA240008B480E157E98EE
>> Hi! I'm your friendly neighbourhood signature virus.
>> Copy me to your signature file and help me spread!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: FTP through Firewall
2006-03-04 18:47 FTP through Firewall Davis Sylvester
2006-03-04 19:13 ` Cedric Blancher
@ 2006-03-07 15:01 ` Aleksander
1 sibling, 0 replies; 3+ messages in thread
From: Aleksander @ 2006-03-07 15:01 UTC (permalink / raw)
To: netfilter
Davis Sylvester wrote:
> iptables -A FORWARD -m state --state
> RELATED,ESTABLISHED -j ACCEPT
> iptables -A FORWARD -m state --state NEW -i eth4 -o
> eth5 -d 1.1.1.2 -p tcp --dport ftp -j ACCEPT
> iptables -t nat -A PREROUTING -i eth1 -d 208.1.1.1 -p
> tcp --dport ftp -j DNAT --to 1.1.1.2
Shouldn't the PREROUTING rule's interface option (-i) match the one in
the FORWARD rule?
You're doing DNAT for packets from eth1, but allowing packets to the ftp
box that come from eth4.
Right now the packets are DROPped/REJECTed depending on your filter
FORWARD policy.
HTH,
Alex
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-03-07 15:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-04 18:47 FTP through Firewall Davis Sylvester
2006-03-04 19:13 ` Cedric Blancher
2006-03-07 15:01 ` Aleksander
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.