Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
MSN and NAT
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
zie
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2003
Posts: 126

PostPosted: Mon Mar 22, 2004 5:34 pm    Post subject: MSN and NAT Reply with quote

What's the trick to get file transfer to work in MSN messenger behind a NAT server?? I opened port 6891-6900.. but it doesn't help. 8O
_________________
/etc/init.d/alsasound start
* ALSA driver is already running.

/etc/init.d/alsasound stop
* ERROR: "alsasound" has not yet been started.
Back to top
View user's profile Send private message
Peracles
Tux's lil' helper
Tux's lil' helper


Joined: 13 Nov 2003
Posts: 143
Location: Dallas, Texas

PostPosted: Mon Mar 22, 2004 6:28 pm    Post subject: Re: MSN and NAT Reply with quote

zie wrote:
What's the trick to get file transfer to work in MSN messenger behind a NAT server?? I opened port 6891-6900.. but it doesn't help. 8O


If u are using iptables, you will need to load the following 2 modules (I load both) or have them compiled into kernel.

/sbin/modprobe ip_nat_ftp
/sbin/modprobe ip_conntrack_ftp

You need to add the following lines to allow traffic on these ports to your firewall script (iptables based).

# MSN Instant Messenger FTP Ports
$IPTABLES -A tcp_packets -p TCP -s 0/0 --dport 6891 -j allowed
$IPTABLES -A tcp_packets -p TCP -s 0/0 --dport 6892 -j allowed
$IPTABLES -A tcp_packets -p TCP -s 0/0 --dport 6893 -j allowed
$IPTABLES -A tcp_packets -p TCP -s 0/0 --dport 6894 -j allowed
$IPTABLES -A tcp_packets -p TCP -s 0/0 --dport 6895 -j allowed
$IPTABLES -A tcp_packets -p TCP -s 0/0 --dport 6896 -j allowed
$IPTABLES -A tcp_packets -p TCP -s 0/0 --dport 6897 -j allowed
$IPTABLES -A tcp_packets -p TCP -s 0/0 --dport 6898 -j allowed
$IPTABLES -A tcp_packets -p TCP -s 0/0 --dport 6899 -j allowed
$IPTABLES -A tcp_packets -p TCP -s 0/0 --dport 6900 -j allowed
Back to top
View user's profile Send private message
zie
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2003
Posts: 126

PostPosted: Tue Mar 23, 2004 1:46 am    Post subject: Reply with quote

OK.. this is a newbie question.. but plz don't kill me... how do you check iptables log??
_________________
/etc/init.d/alsasound start
* ALSA driver is already running.

/etc/init.d/alsasound stop
* ERROR: "alsasound" has not yet been started.
Back to top
View user's profile Send private message
Peracles
Tux's lil' helper
Tux's lil' helper


Joined: 13 Nov 2003
Posts: 143
Location: Dallas, Texas

PostPosted: Tue Mar 23, 2004 3:13 am    Post subject: Reply with quote

zie wrote:
OK.. this is a newbie question.. but plz don't kill me... how do you check iptables log??


"iptables -L -n" will show the rules that are currently being used. The -n option shows IP addresses instead of DNS entries.

Are u using some firewall software (shorewall, firestarter, etc) or did u roll your own iptables script?
Back to top
View user's profile Send private message
zie
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2003
Posts: 126

PostPosted: Wed Mar 24, 2004 2:45 am    Post subject: Reply with quote

Actually I'm using the firewall in my router, and I cannot get file transfer to work in any IM protocol. I just want to know wether it is blocked by my router or my computer firewall. Where can I find the log of packets blocked by iptables?
_________________
/etc/init.d/alsasound start
* ALSA driver is already running.

/etc/init.d/alsasound stop
* ERROR: "alsasound" has not yet been started.
Back to top
View user's profile Send private message
Peracles
Tux's lil' helper
Tux's lil' helper


Joined: 13 Nov 2003
Posts: 143
Location: Dallas, Texas

PostPosted: Wed Mar 24, 2004 3:32 am    Post subject: Reply with quote

zie wrote:
Actually I'm using the firewall in my router, and I cannot get file transfer to work in any IM protocol. I just want to know wether it is blocked by my router or my computer firewall. Where can I find the log of packets blocked by iptables?


You would have to add rules to log the packets being dropped. You basically precede your drop rules with a LOG entry. The following is an example.

$IPTABLES -A bad_tcp_packets -p tcp ! --syn -m state --state NEW -j LOG \
--log-prefix "New not syn:"

$IPTABLES -A bad_tcp_packets -p tcp ! --syn -m state --state NEW -j DROP


This will log to your console. You can add filters to your logger to move them off into another file.

EDIT:
Why are you running a firewall on your local machine when there is already a firewall on your router?
Back to top
View user's profile Send private message
zie
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2003
Posts: 126

PostPosted: Sat Mar 27, 2004 4:55 am    Post subject: Reply with quote

Thanks.. I haven't mess with it again.

I'm running firewall on my computer, because... uhm... it is on by default :oops:
_________________
/etc/init.d/alsasound start
* ALSA driver is already running.

/etc/init.d/alsasound stop
* ERROR: "alsasound" has not yet been started.
Back to top
View user's profile Send private message
dma
Guru
Guru


Joined: 31 Jan 2003
Posts: 437
Location: Charlotte, NC, USA

PostPosted: Sat Mar 27, 2004 8:10 pm    Post subject: Reply with quote

Maybe adding UPnP support would make it behave:

linux-igd

(aka net-misc/linux-igd).

The linux-igd website wrote:
This project is a deamon that emulates Microsoft's Internet Connection Service (ICS). It implements the UPnP Internet Gateway Device specification (IGD) and allows UPnP aware clients, such as MSN Messenger to work properly from behind a NAT firewall.



Back to top
View user's profile Send private message
mlsfit138
Guru
Guru


Joined: 20 Sep 2003
Posts: 406
Location: Washington

PostPosted: Sat Mar 27, 2004 11:13 pm    Post subject: Reply with quote

zie wrote:
Thanks.. I haven't mess with it again.

I'm running firewall on my computer, because... uhm... it is on by default :oops:

On by default? I guess that this isn't a gentoo install. Gentoo won't install a firewall by default. It doesn't make sense to have 2 firewalls.

Did you forward the ports on both the router and the local firewall? Is your router a hardware router, or another computer? A lot of hardware routers allow you to access their interface via a web browser. Mine is 192.168.1.1.
_________________
"Everytime you justify
another good in you dies"

-Converge, The Saddest Day, Petitioning the Empty Sky
Back to top
View user's profile Send private message
Crimson Rider
Guru
Guru


Joined: 23 Jun 2003
Posts: 462
Location: Delft, the Netherlands

PostPosted: Tue May 25, 2004 12:34 pm    Post subject: Reply with quote

Want to know something funny ?

It suddenly worked just out of the box for me, I am using Jay's IP Tables and a 2.6 kernel, file transfers work perfectly, gonna try the webcam thing later on.
_________________
Code, justify, code - Pitr Dubovich
Back to top
View user's profile Send private message
castrik
n00b
n00b


Joined: 16 Apr 2004
Posts: 31

PostPosted: Tue Jun 29, 2004 9:56 am    Post subject: Reply with quote

Crimson Rider wrote:
Want to know something funny ?

It suddenly worked just out of the box for me, I am using Jay's IP Tables and a 2.6 kernel, file transfers work perfectly, gonna try the webcam thing later on.


Any feedback on how the webcam went?
Back to top
View user's profile Send private message
Crimson Rider
Guru
Guru


Joined: 23 Jun 2003
Posts: 462
Location: Delft, the Netherlands

PostPosted: Tue Jun 29, 2004 10:07 am    Post subject: Reply with quote

Worked perfectly as well.
_________________
Code, justify, code - Pitr Dubovich
Back to top
View user's profile Send private message
Lacrymology
n00b
n00b


Joined: 04 Nov 2004
Posts: 13
Location: Tokyo

PostPosted: Tue Dec 14, 2004 7:53 am    Post subject: Reply with quote

what are you using to use the webcam? or did I get it all wrong and you're using your gentoo box as a router and the webcam worked from a windows client?
_________________
Tomas
Far away
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum