Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > LimeWire+WireShare (Cross-platform) > Technical Support > Connection Problems
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

Connection Problems Problems getting the LimeWire or WireShare program connecting to the Gnutella network. (not about connecting to files, that is a Download/Upload Problems section issue.) Please supply system details as described in the forum rules.
Start here Suggestions to help you get connected, * try here first *, then see below (click on 'this' blue link)

Did you FORGET something BEFORE you posted? If you post in this section you MUST provide these details: System details - help us to help you (click on 'this' blue link), else do not be surprised if your posting is ignored :)


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2 (permalink)  
Old January 4th, 2008
Apprentice
 
Join Date: December 23rd, 2007
Posts: 6
frenzy.usa is flying high
Default

Did some more testing and research. The bash script below is what I currently use to allow limewire to work through iptables.

For instructions on how to write your own iptables rules type 'man iptables' in a terminal screen.

Hope this helps some else.

Code:
#!/bin/bash

#
# filename: lw_iptables_rules
# chown: root:root   <-- must be owned and run by root or script will fail
# chmod: 700
#

# Open/close ports (TCP and UDP) 1025 to 50000 for Limewire
#
#
# Created 2007-12-27 by frenzy.usa
# Last updated 2007-12-27 by frenzy.usa
#

# Location of your iptables binary
IPT_BIN="/sbin/iptables"

# IP address of computer that is running limewire
LW_HOST=192.168.1.203

if [ "$1" = "A" ]
then
  echo "Opening limewire ports"
  # TCP ports
  $IPT_BIN -t filter -I FORWARD -p tcp -m tcp -m multiport -s $LW_HOST -i eth0 -o eth1 --ports 1025:50000 -j ACCEPT
  $IPT_BIN -t filter -I FORWARD -p tcp -m tcp -m multiport -d $LW_HOST -i eth1 -o eth0 --ports 1025:50000 -j ACCEPT

  # UDP ports
  $IPT_BIN -t filter -I FORWARD -p udp -m udp -m multiport -s $LW_HOST -i eth0 -o eth1 --ports 1025:50000 -j ACCEPT
  $IPT_BIN -t filter -I FORWARD -p udp -m udp -m multiport -d $LW_HOST -i eth1 -o eth0 --ports 1025:50000 -j ACCEPT

elif [ "$1" = "D" ]
then
  echo "Closing limewire ports"
  # TCP ports
  $IPT_BIN -t filter -D FORWARD -p tcp -m tcp -m multiport -s $LW_HOST -i eth0 -o eth1 --ports 1025: -j ACCEPT
  $IPT_BIN -t filter -D FORWARD -p tcp -m tcp -m multiport -d $LW_HOST -i eth1 -o eth0 --ports 1025: -j ACCEPT

  # UDP ports
  $IPT_BIN -t filter -D FORWARD -p udp -m udp -m multiport -s $LW_HOST -i eth0 -o eth1 --ports 1025: -j ACCEPT
  $IPT_BIN -t filter -D FORWARD -p udp -m udp -m multiport -d $LW_HOST -i eth1 -o eth0 --ports 1025: -j ACCEPT


else
  echo "Usage: $(basename $0) [A|D]"
  echo "      A:  Open ports for limewire"
  echo "      D:  Close ports for limewire"
fi
Reply With Quote
 


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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 02:03 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.