Operating Systems > Linux and UNIX
amsn file transfer help
Commander:
i did upgrade to the latest version. but i can;t get any files through. (in or out). i know it;s a problem with my iptables setup. i was wondering if someone could help me setup my iptables to accept packets from ports 6891..6895, or point me to a tutorial that would give a detailed info about how to do it as i have never played around with this before.
thanx
flap:
I assume you're asking how you can allow packets to ports 6891-6895.
Do you have an iptables script somewhere? Just add this line at the top:
iptables -A INPUT -p tcp --destination-port 6891:6895 -j ACCEPT
If you did mean from thos ports it would be
iptables -A INPUT -p tcp --source-port 6891:6895 -j ACCEPT
Commander:
what exactly do u mean by the iptables script. i was told to add
"-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 6891:6895 --syn -j ACCEPT"
in my iptable. so i opened /etc/sysconfig/iptables and added that. it didn;t make a difference. the file transfer still fails.
where do i add these two lines? or do i have to write a script on my own?
iptables -A INPUT -p tcp --destination-port 6891:6895 -j ACCEPT
iptables -A INPUT -p tcp --source-port 6891:6895 -j ACCEPT
[EDIT]
now i can send out files. but i can't recieve any. it says it can;t connect to the peer (or something along that line)
any help?
[ September 09, 2003: Message edited by: Commander ]
flap:
Ok ignore the lines I gave you, that line you added to /etc/sysconfig/iptables will do it. It may be that you're adding the line in the wrong place. Can you paste the contents of /etc/sysconfig/iptables?
Commander:
here's what i have in there
--- Code: ---
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version