Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i am wondering if anyone has got the file transfer working in amsn..i presently use redhat 8 and and it feels like i have tried using every different command in iptables to get it going but still no luck...my present setting in iptables that i am using is, which won't work:
-A RH-Lokkit-0-50-INPUT -p udp -m udp -s 0/0 --sport 6890:6895 -d 0/0 --dport 6890:6895 -i eth0 -j ACCEPT
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp -s 0/0 --sport 6890:6895 -d 0/0 --dport 6890:6895 -i eth0 -j ACCEPT
and the previous command i have tried before that is:
#-A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 6891 -d 0/0 -j ACCEPT
#-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 6891 -d 0/0 -j ACCEPT
right up to port 6895, but didn't post it all, you get the idea..
any help would be appreciated..
after i make changes i then send the command:
/etc/init.d/iptables restart
and then i try the file transfer but it just sits there and doesn't send..
ok v2lk...i have a question...i was issuing the command:
/etc/init.d/iptables stop, but you say:
/etc/rc.d/init.d/iptables stop....although both commands do work, should i be using the one you mention rather than what i am doing...no matter which way i do it i still get:
Flushing all chains: [ OK ]
Removing user defined chains: [ OK ]
Resetting built-in chains to the default ACCEPT policy: [ OK ]
and then i issue to start again...but it doesn't work...
i gather the whole concept of all this, but what i would like to know is, is the command i am adding to my iptables correct, if not, what should i use, if so, then i am stumped...as for my isp blocking ports, that is not the case...
for those of you just joining us () the following is what i have in my iptables, and the two lines commented are my previous commands i tried:
i don't understand (maybe it's because english is not my first language).
did the file transfer work when you stopped iptables? cause if it didn't then theres nothing to do with iptables.
else-way, the code
Code:
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 6890:6895 -j ACCEPT
should do it, i don't see a need for tickling udp.
sorry about that vl2k, i actually didn't understand that that is what you meant...by stopping iptables and then trying the transfer, and if it works, then so be it...i will give that a go when i get in touch with someone to test with..
and nuzzy i did nothing with /etc/services, so are you implying that i should enter them in there?
yub, actually did it anyways after i responded to your post...i added:
# Local services
amsn 6890/tcp # file transfer for msn
amsn 6890/udp # file transfer for msn
amsn 6891/tcp # file transfer for msn
amsn 6891/udp # file transfer for msn
amsn 6892/tcp # file transfer for msn
amsn 6892/udp # file transfer for msn
amsn 6893/tcp # file transfer for msn
amsn 6893/udp # file transfer for msn
amsn 6894/tcp # file transfer for msn
amsn 6894/udp # file transfer for msn
amsn 6895/tcp # file transfer for msn
amsn 6895/udp # file transfer for msn
guys, then, it's not your iptables that is f*****g you, its your ISP.
...well, back to the technical issues:
1) /etc/services has nothing to do with it, you may write 10 Megs of "hello granny!" there if you like.
2) i give you a working copy of my iptables (dont ask whats my ip )
Code:
##############################
# rhlokkit iptables
# modifyed by v2lk, 16/6/2003
# billy@orange.tpt.edu.ee
##############################
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Lokkit-0-50-INPUT - [0:0]
-A INPUT -j RH-Lokkit-0-50-INPUT
-A FORWARD -j RH-Lokkit-0-50-INPUT
# for pop3 server
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 110 --syn -j ACCEPT
# for ftp and ssh server
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 20:22 --syn -j ACCEPT
# for SMTP server
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 25 --syn -j ACCEPT
# for apache
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 80 --syn -j ACCEPT
# for msn file transfer
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 6891 --syn -j ACCEPT
# accept from lo :)
-A RH-Lokkit-0-50-INPUT -i lo -j ACCEPT
# the following line is for your ISP's DNS server, edit it!!!
-A RH-Lokkit-0-50-INPUT -p udp -m udp -s 62.65.192.1 --sport 53 -d 0/0 -j ACCEPT
# and now, kick ass to the bads:
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --syn -j REJECT
-A RH-Lokkit-0-50-INPUT -p udp -m udp -j REJECT
COMMIT
actually i will make another comment...i know in my iptables i have my isp's dns servers, but in my uncles iptables there is none, could that be an issue?
also one more thing, i don't know if you can get anything from this, but when trying to send out a file and after it dies out, an error message pops up like 2 minutes later, and when i get the detail of the message it says:
error writing "sock9": connection timed out
while executing
"puts $sockid "VER MSNFTP\r""
(procedure "::MSN::ConnectedMSNFTP" line 13)
invoked from within
"::MSN::ConnectedMSNFTP sock9 after#1076722 6058232 {Metallica - St. Anger - Shoot Me Again(1).mp3} 208720"
well, i can get one thing from this for sure -- you listen to the right music!
as sayd...
...back to the technical issues:
i'm online with billy@orange.tpt.edu.ee usually 20:00-23:00, GMT+2 if i remember correctly, Tallin, Helsinki, Riga timezone. try to catch me up and then we can try if you can send a file to me. this would make clear about the uncle.
by the way, "puts" (witch was in the error message, terived from "put string") is not at all a nice word in Estonian
well i dont know which way to convert it, but i am GMT -4 so either that means your 6 hours ahead of me or 6 hours behind me, and if it is 6 hours ahead of me then 20 - 23:00 would be 2:00 to 5:00 in the morning(am) here, which i definetly will not be online hehe, i think thats a given...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.