Why not tell people how to portforward?

djfkldsfss

New member
Hi

I know, mostly because then those on whose Systems it doesnt work start getting on your nerves rather those of others. But why not give an example and tell them not to use it if it doesnt work or to get on the nerves of someone else? That you wont answer questions regarding the forwarding at all?

Because in 90 percent of all cases the example just works! Why force everyone to teach himself ipmasqadm and ipchains, to read through tons of docs??

Anyway, here would be mine, i am no expert on this but i think that it should work for most people:

in ip-up:

IPADDR=$4;
ZEIT=$( date '+%k:%M %d/%m/%Y' )
echo $ZEIT $IPADDR >> /var/log/routerip.log
recode lat1..ibmpc < /var/log/routerip.log > /share/ipaddressedesrouters.txt

# GNUtella-Ports an Host im LAN forwarden
/usr/sbin/ipmasqadm portfw -f
/usr/sbin/ipmasqadm portfw -a -P tcp -L $IPADDR 6346 -R 192.168.1.666 6346

This also forwards the IP of the Firewall into a txtfile (converts this into ibmpc-format first)into a file on the sambasharefolder, so i can enter it manually into bearshare.

ip-down:

ZEIT=$( date '+%k:%M %d/%m/%Y' )
TEXT="Verbindung getrennt!"
echo $ZEIT $TEXT >> /var/log/routerip.log
recode lat1..ibmpc < /var/log/routerip.log > /share/ipaddressedesrouters.txt
/usr/sbin/ipmasqadm portfw -f

This deletes the portforwarding at the moment the connection of the firewall goes down. And updates my ipaddressedesrouters.txt.

I think it now should be easier to figure out what to do if you look at these examples than when you have to start from nothing, just knowing that you have to forward some "ports" to your machine on the LAN.

BTW: other hosts on your LAN than 192.168.1.666 shouldnt do automatic connections to hosts, but manually connect to 192.168.1.666 and only connect to this machine. I havent tried this yet as i dont have more GNUtellahosts on this LAN but i think it should work.

The 192.168.1.666 of course isnt a valid ip. You have to replace it with the ip of your primary Gnutella host on your LAN

You have to tell (in my case) bearshare that its real ip is the ip of the gateway. this isnt easy, but there are websites that discover your external ip, if you cant use such a simple script like mine up there to find it out yourself.

You also shouldnt do this if you have other ports forwarded with portfw, as the flush (portfw -f) entries in ip-up and ip-down would erase other settings to portfw previously made, but i guess if you have set up portfw already on your firewall you know what to do anyway

For me this Config runs very well, i have incoming connections accepted and down- and uploads work just fine.

So, now tell me what you think. Give me other reasons why not to give examples like this or why you think i immediately should change my configuration if you have a better one.

cu

Mr.Smith
 
easiest way for everyone to do this...(well if your on a Win platform...)

go to www.deerfield.com and download DNS 2 go...it's service that will map a dynamic IP to a static name (???.dns2go.com) Then just make your client use the name to force it to rather than looking up the IP everytime...

That's what I got going and it works on limewire... i'm not sure about other platforms and whether or not they will accept a name instead of a number...
 
Another Linux solution: Find a copy of StormFirewall. If a endloser like me can set it up anyone can. The default setting is plenty anal and ipmasq is default.The enduser still has to be able to configure a network.but not much else. I am running Newtella on a Win98SE box behind it (Doz box also is serving up web-cam images via FTP to website every 5 seconds.) With every port shut off to the outside world on the firewall, I made no modifications to my settings on the firewall. Now Stormix is dead plenty of people will be using it. It's just the way things go
 
Back
Top