LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 06-15-2003, 10:03 PM   #1
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
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..

Last edited by DrOzz; 06-15-2003 at 10:05 PM.
 
Old 06-16-2003, 02:48 AM   #2
v2lk
Member
 
Registered: May 2003
Location: Estonia
Distribution: Slackware 9.1
Posts: 61

Rep: Reputation: 15
i posted smth into topic "msn messenger for redhat9" or smth like that, look at it
 
Old 06-16-2003, 03:15 AM   #3
yowwww
Member
 
Registered: Apr 2003
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 533

Rep: Reputation: 30
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.
 
Old 06-16-2003, 10:49 AM   #4
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Original Poster
Rep: Reputation: 59
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:

-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?
 
Old 06-16-2003, 12:34 PM   #5
v2lk
Member
 
Registered: May 2003
Location: Estonia
Distribution: Slackware 9.1
Posts: 61

Rep: Reputation: 15
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.
 
Old 06-16-2003, 02:07 PM   #6
nuzzy
Member
 
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204

Rep: Reputation: 31
are the port #'s entered into /etc/services?
 
Old 06-16-2003, 02:21 PM   #7
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Original Poster
Rep: Reputation: 59
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?
 
Old 06-16-2003, 02:31 PM   #8
nuzzy
Member
 
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204

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

amsn 6891/tcp #aMSN client
 
Old 06-16-2003, 02:34 PM   #9
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Original Poster
Rep: Reputation: 59
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
 
Old 06-16-2003, 03:33 PM   #10
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Original Poster
Rep: Reputation: 59
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?
 
Old 06-16-2003, 03:52 PM   #11
v2lk
Member
 
Registered: May 2003
Location: Estonia
Distribution: Slackware 9.1
Posts: 61

Rep: Reputation: 15
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
 
Old 06-16-2003, 03:59 PM   #12
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Original Poster
Rep: Reputation: 59
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?
 
Old 06-16-2003, 04:08 PM   #13
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Original Poster
Rep: Reputation: 59
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"
 
Old 06-16-2003, 04:49 PM   #14
v2lk
Member
 
Registered: May 2003
Location: Estonia
Distribution: Slackware 9.1
Posts: 61

Rep: Reputation: 15
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
 
Old 06-16-2003, 04:58 PM   #15
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Original Poster
Rep: Reputation: 59
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I cannot transfer files with aMSN... sanmartin Linux - Software 5 10-26-2005 08:28 AM
How get wish file for run amsn??? Nele Linux - Software 3 05-03-2005 02:42 PM
amsn cant dl file.... sonesay Linux - Software 3 07-12-2004 06:02 AM
Msn messenger file transfer for linux without amsn Boffy Linux - Software 2 05-06-2004 10:51 PM
AMSN say no such file: libmd5crypt.so sUbLiMiNa Linux - Software 1 02-13-2003 08:51 AM


All times are GMT -5. The time now is 06:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration