Stop Microsoft
Operating Systems => Linux and UNIX => Topic started by: Commander on 10 September 2003, 02:46
-
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
-
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
-
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 ]
-
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?
-
here's what i have in there
-
What you have there should do it. Did you re-read the firewall rules with 'iptables-restore /etc/sysconfig/iptables'?
-
i just ran the iptables restore command and now the file transfer works!! thanks a lot flap! i owe ya 1 !! :D