ftp issue
Hello,
My server FC4
eth0 is wan with static IP.
eth1 lan
My iptables rules are as follows :
# Generated by iptables-save v1.2.11 on Wed May 11 11:06:56 2005 *nat
:OUTPUT ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -s 192.168.0.0/24 -o eth0 -j SNAT --to 6x.xxx.xxx.xx COMMIT
# Completed on Wed May 11 11:06:56 2005
# Generated by iptables-save v1.2.11 on Wed May 11 11:06:56 2005 *mangle
:PREROUTING ACCEPT [93:9058]
:INPUT ACCEPT [85:8650]
:FORWARD ACCEPT [8:408]
:OUTPUT ACCEPT [88:8886]
:POSTROUTING ACCEPT [95:9218]
COMMIT
# Completed on Wed May 11 11:06:56 2005
# Generated by iptables-save v1.2.11 on Wed May 11 11:06:56 2005 *filter
:INPUT ACCEPT [85:8650]
:FORWARD ACCEPT [8:408]
:OUTPUT ACCEPT [87:8810]
-P FORWARD DROP
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT -A FORWARD -i eth1 -o eth0 -p tcp --dport 25 -j ACCEPT -A FORWARD -i eth1 -o eth0 -p tcp --dport 110 -j ACCEPT -A FORWARD -p udp --dport 53 -j ACCEPT
-A OUTPUT -p udp --dport 53 --sport 1024: -j ACCEPT COMMIT
# Completed on Wed May 11 11:06:56 2005
-------------------------- end rules-----------------------------
I am having problems with ftp uploads/downloads for :
ftp.sriaurobindoashram.com
Using gftp from the server :
1. gftp -> ftp->options->ftp->passive all transfer - checked
Gets connected but gets stuck at recieves files names
What could the problem ?
Thanks
Varun
Quoted 5 lines · On Friday 2005-August-12 05:30, [email protected] wrote:
My server FC4
eth0 is wan with static IP.
eth1 lanMy iptables rules are as follows :
[snip]
Quoted 2 lines
*nat
-A POSTROUTING -s 192.168.0.0/24 -o eth0 -j SNAT --to 6x.xxx.xxx.xx
[snip]
Quoted 7 lines
*mangle
:PREROUTING ACCEPT [93:9058]
:INPUT ACCEPT [85:8650]
:FORWARD ACCEPT [8:408]
:OUTPUT ACCEPT [88:8886]
:POSTROUTING ACCEPT [95:9218]
With policies at the default and no rules, why are you loading the mangle table?
Quoted 3 lines
*filter
:INPUT ACCEPT [85:8650]
And no rules. Any services are open to the outside (if listening on eth0, of course.) Fine if you know what you're doing. But the kind of questions you're asking lead me to think you might not.
Quoted 4 lines
:FORWARD ACCEPT [8:408]
:OUTPUT ACCEPT [87:8810]-P FORWARD DROP
Hmmmm. I have never seen this syntax. Above it says the policy is ACCEPT, whereas I presume this is resetting it to DROP. Surely this isn't output from iptables-save(8)? Does iptables-restore(8) use "-P" lines to set policies? (I might test it later, myself.)
Review
Quoted 2 lines
(quoted diff) +0
-2-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT -A FORWARD -i eth1 -o eth0 -p tcp --dport 25 -j ACCEPT
So if there are any Windows machines in the LAN they can get out with their zombie spew.
Review
Quoted 2 lines
(quoted diff) +0
-2-A FORWARD -i eth1 -o eth0 -p tcp --dport 110 -j ACCEPT -A FORWARD -p udp --dport 53 -j ACCEPT
And *most* DNS would work for LAN clients. Of course as above I'm not sure that the DROP policy is working, so maybe they can do anything.
Quoted 1 line
-A OUTPUT -p udp --dport 53 --sport 1024: -j ACCEPT
This rule does nothing substantive, except as a packet counter.
Quoted 5 lines
I am having problems with ftp uploads/downloads for :
ftp.sriaurobindoashram.com
Using gftp from the server :
There are no limits in filter INPUT nor OUTPUT. There's no iptables issue here. Am I correct in thinking that "using gftp from the server" means that you are running the FTP client on the machine with the iptables rules listed above?
Quoted 5 lines
1. gftp ->
ftp->options->ftp->passiveall transfer - checkedGets connected but gets stuck at recieves files names
What could the problem ?
Something else is blocking you? The remote FTP server doesn't support passive FTP?
Signature · 2 lines
mail to this address is discarded unless "/dev/rob0"
or "not-spam" is in Subject: header