LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   aMSN file transfer (https://www.linuxquestions.org/questions/linux-software-2/amsn-file-transfer-65841/)

DrOzz 06-15-2003 10:03 PM

aMSN file transfer
 
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..

v2lk 06-16-2003 02:48 AM

i posted smth into topic "msn messenger for redhat9" or smth like that, look at it

yowwww 06-16-2003 03:15 AM

I can receive files, but I can't send them, but that's due to my router. Even when I open ports it doesn't work.

DrOzz 06-16-2003 10:49 AM

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 (:D) the following is what i have in my iptables, and the two lines commented are my previous commands i tried:

-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
#-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

and one question for you yowww, if you can at least recieve files, then what do you have set in your firewall ruleset?

v2lk 06-16-2003 12:34 PM

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.

nuzzy 06-16-2003 02:07 PM

are the port #'s entered into /etc/services?

DrOzz 06-16-2003 02:21 PM

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?

nuzzy 06-16-2003 02:31 PM

yep..I would enter the ports at the bottom of the file like this:

amsn 6891/tcp #aMSN client

DrOzz 06-16-2003 02:34 PM

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

DrOzz 06-16-2003 03:33 PM

well i stopped iptables and so did my uncle on his end, and neither of us can send/receive files..so i am stumped now...any ideas?

v2lk 06-16-2003 03:52 PM

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 :D)
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


DrOzz 06-16-2003 03:59 PM

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?

DrOzz 06-16-2003 04:08 PM

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"

v2lk 06-16-2003 04:49 PM

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 :D

DrOzz 06-16-2003 04:58 PM

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...


All times are GMT -5. The time now is 10:49 AM.