Kazaa Ports
Hi All,
I am trying to provide a modest amount of security for a home LAN using NAT and filtering. My family insists on using Kazaa Lite on their Windows boxes (aaahhh!!).
My (other) problem is that Kazaa insists on using sequential source ports and seemingly random destination ports to make connections. I already have a rule to allow ESTABLISHED,RELATED through, but these packets must be new connections (connecting to supernodes maybe?). No matter how many ports I open I can't seem to open enough ports to make it run.
I'm rapidly becoming unpopular in my house. Any ideas how I can make Kazaa Lite work and still maintain some security? Are these mutually exclusive goals?
Jeff
Quoted 13 lines · --- Jeffrey Laramie
Hi All,
I am trying to provide a modest amount of security for a home LAN using NAT and filtering. My family insists on using Kazaa Lite on their Windows boxes (aaahhh!!).
My (other) problem is that Kazaa insists on using sequential source ports and seemingly random destination ports to make connections. I already have a rule to allow ESTABLISHED,RELATED through, but these packets must be new connections (connecting to supernodes maybe?). No matter how many ports I open I can't seem to open enough ports to make it run.
Quoted 7 lines
I'm rapidly becoming unpopular in my house. Any ideas how I can make Kazaa Lite work and still maintain some security? Are these mutually exclusive goals?
Jeff
Are you using NAT? This is probably your best soloution.
SBlaze
=====
"Winky is not knowing how sir, winky is not knowing how?" -=Winky / Harry Potter and the Goblet of Fire=-"
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Quoted 11 lines · SBlaze
Quoted 8 lines · --- Jeffrey Laramie
Hi All,
I am trying to provide a modest amount of security for a home LAN using NAT and filtering. My family insists on using Kazaa Lite on their Windows boxes (aaahhh!!).
My (other) problem is that Kazaa insists on using sequential source ports and seemingly random destination ports to make connections. I already have a rule to allow ESTABLISHED,RELATED through, but these packets must be new connections (connecting to supernodes maybe?). No matter how many ports I open I can't seem to open enough ports to make it run.
I'm rapidly becoming unpopular in my house. Any ideas how I can make Kazaa Lite work and still maintain some security? Are these mutually exclusive goals?
Quoted 9 lines
Quoted 5 lines
Jeff
Are you using NAT? This is probably your best soloution.
I use SNAT. Here is the rule:
iptables -t nat -A POSTROUTING -o $Net_Interface -j SNAT --to $Net_IP
My default policy on the filter FORWARD chain is drop, so any required ports have to have an ACCEPT rule for in order for services to work. In this case, Kazaa expects to have an unknown (large) number of ports open LAN->Net and it fails when it finds a blocked port.
I can make it work if I stop filtering outbound traffic, but I found a worm last month by checking unauthorized outbound traffic and I'm reluctant to give up that extra security.
Jeff
Quoted 42 lines · --- Jeffrey Laramie
Quoted 20 lines · SBlaze
Quoted 17 lines · --- Jeffrey Laramie
Hi All,
I am trying to provide a modest amount of security for a home LAN using NAT and filtering. My family insists on using Kazaa Lite on their Windows boxes (aaahhh!!).
My (other) problem is that Kazaa insists on using sequential source ports and seemingly random destination ports to make connections. I already have a rule to allow ESTABLISHED,RELATED through, but these packets must be new connections (connecting to supernodes maybe?). No matter how many ports I open I can't seem to open enough ports to make it run.
I'm rapidly becoming unpopular in my house. Any ideas how I can make Kazaa Lite work and still maintain some security? Are these mutually exclusive goals?
Quoted 9 lines
Quoted 5 lines
Jeff
Are you using NAT? This is probably your best soloution.
I use SNAT. Here is the rule:
iptables -t nat -A POSTROUTING -o $Net_Interface -j SNAT --to $Net_IP
My default policy on the filter FORWARD chain is drop, so any required ports have to have an ACCEPT rule for in order for services to work. In this case, Kazaa expects to have an unknown (large) number of ports open
LAN->Netand it fails when it finds a blocked port.
Quoted 8 lines
I can make it work if I stop filtering outbound traffic, but I found a worm last month by checking unauthorized outbound traffic and I'm reluctant to give up that extra security.
Jeff
Assuming that you are running the Kazza on a Internal windows machine the POSTROUTING should handle all of the out going of the Kazza Client...
what is probably not making it through is the returning connection attempts of the Kazza servers? In which case... you shouldn't be using FORWARD lines at all sinnce these are supposedly destined for the local machine(as in the Linux box itself and not anything in your lan). What I think is needed here is the PREROUTING of a range or specific ports. I think this will solve your problem for Kazza but it offers very little as in the way of security for those ports.
An example of this is when I used to run my Half-Life Deadicated Server on my internal Windows Machine I used a PREROUTING line such as...
iptables -t nat -A PREROUTING -p udp --dport 27015 -i eth0 -j DNAT --to-destination 192.168.1.25:27015
While my scenerio was alot simpler than yours it's similar I think. Your problem will be of course finding the range of ports. I would also say take note of the use of limiting it to one protocol(if you can). Better to have a straw open to the world than a big ol sewer pipe!
Hope this helps
SBlaze
=====
"Winky is not knowing how sir, winky is not knowing how?" -=Winky / Harry Potter and the Goblet of Fire=-"
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Thanks for answering
Quoted 4 lines
Assuming that you are running the Kazza on a Internal windows machine the POSTROUTING should handle all of the out going of the Kazza Client...
hmmm . . . I revised my rule set recently using the iptables tutorial by Oskar Andreasson as a guide, and he recommends again doing any filtering in the nat tables.
http://iptables-tutorial.frozentux.net/chunkyhtml/traversingoftables.html#TRAVERSINGGENERAL
Quoted 5 lines
what is probably not making it through is the returning connection attempts of the Kazza servers? In which case... you shouldn't be using FORWARD lines at all sinnce these are supposedly destined for the local machine(as in the Linux box itself and not anything in your lan).
If you look further down in the link I posted, there is a diagram that shows INPUT going to the localhost and the FORWARD being used for packets destined for other hosts. Hmmm again . . . :-)
Quoted 7 lines
What I think is needed here is the
PREROUTING of a range or specific ports. I think this will solve your problem for Kazza but it offers very little as in the way of security for those ports.An example of this is when I used to run my Half-Life Deadicated Server on my internal Windows Machine I used a PREROUTING line such as...
Quoted 10 lines
iptables -t nat -A PREROUTING -p udp --dport 27015 -i eth0 -j DNAT --to-destination 192.168.1.25:27015
While my scenerio was alot simpler than yours it's similar I think. Your problem will be of course finding the range of ports. I would also say take note of the use of limiting it to one protocol(if you can). Better to have a straw open to the world than a big ol sewer pipe!
Absolutely! That's what makes this an issue for me. I can't nail down the ports Kazaa needs and the more I open up the less protection I have. I need to find a better strategy and I'm open to suggestions.
Jeff
Quoted 11 lines · --- Jeffrey Laramie
Thanks for answering
Quoted 4 lines
Assuming that you are running the Kazza on a Internal windows machine the POSTROUTING should handle all of the out going of the Kazza Client...
hmmm . . . I revised my rule set recently using the iptables tutorial by Oskar Andreasson as a guide, and he recommends again doing any filtering in the nat tables.
You would not be doing any filtering in the nat table. You are simply passing the packets destined for a Kazza client onto another machine and ports. PRE/POST ROUTING always supercede INPUT and OUTPUT filters.
Quoted 1 line
http://iptables-tutorial.frozentux.net/chunkyhtml/traversingoftables.html#TRAVERSINGGENERAL
Quoted 6 lines
Quoted 3 lines
what is probably not making it through is the returning connection attempts
of
Quoted 1 line
the Kazza servers? In which case... you shouldn't be using FORWARD lines at
all
Quoted 8 lines
Quoted 1 line
sinnce these are supposedly destined for the local machine(as in the Linux
box
Quoted 2 lines
itself and not anything in your lan).
If you look further down in the link I posted, there is a diagram that shows INPUT going to the localhost and the FORWARD being used for packets destined for other hosts. Hmmm again . . . :-)
Again I don't think FORWARD is your answer here... best bet is nat (imho that is)
Quoted 21 lines
Quoted 3 lines
What I think is needed here is the
PREROUTING of a range or specific ports. I think this will solve yourproblem
Quoted 1 line
for Kazza but it offers very little as in the way of security for those
ports.
Quoted 2 lines
An example of this is when I used to run my Half-Life Deadicated Server on
my
Quoted 12 lines
internal Windows Machine I used a PREROUTING line such as...
iptables -t nat -A PREROUTING -p udp --dport 27015 -i eth0 -j DNAT --to-destination 192.168.1.25:27015
While my scenerio was alot simpler than yours it's similar I think. Your problem will be of course finding the range of ports. I would also say take note of the use of limiting it to one protocol(if you can). Better to have a straw open to the world than a big ol sewer pipe!
Quoted 4 lines
Absolutely! That's what makes this an issue for me. I can't nail down the ports Kazaa needs and the more I open up the less protection I have. I need to find a better strategy and I'm open to suggestions.
Ok I might can help with this... You may need something like ethereal or ettercap fired up on your internal device (eth1 I'm guessing?) As the requests go out you should be able to view source and destination ips/ports. An even simpler method that might work is fire up Kazza and do a netstat -a from a DOS/CMD window. mayb a netstat -al too.
Quoted 3 lines
Jeff
=====
"Winky is not knowing how sir, winky is not knowing how?" -=Winky / Harry Potter and the Goblet of Fire=-"
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com