This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

need help with linking bots and nat firewall

Old posts that have not been replied to for several years.
S
SnOoPDoGg187
Voice
Posts: 17
Joined: Fri Apr 04, 2003 7:43 am

need help with linking bots and nat firewall

Post by SnOoPDoGg187 »

sup guys? k heres the problem i think the bots are behind a nat firewall i have 4 of them 2 accounts but it's the same shell. in the config file it says this..

you box has an IP in one of the following
# ranges: 192.168.0.0-192.168.255.255, 172.16.0.0-172.31.255.255,
# 10.0.0.0-10.255.255.255 and your firewall transparently changes your
# address to a unique address for your box

well i have found 3 diferent ip addresses but not one of them are in that range so does that mean there not behind a nat firewall?

the guy that ran the bots before me had it set in the config file to use the nat firewall well i can't ask him now cause he's not around any more and the guy that has the shell acount is out of town on business or something and i can't get ahold of him. also it say's in the config file about if dcc or ctcp chat or file sharing ain't working well the dcc and ctcp chat work i just can't get them to link i have been working on them for 2 days now and figured i'd better let the pro's help me out : )

let me know whatcha need me to paste in here the ip's ect.. i reall do need to get this fixed plz help me out

thanks in advance for the help
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

You might be able to run the "ifconfig" command from the shell. It will give you several blocks of output, that should contain the details you need.

Code: Select all

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:45091 errors:0 dropped:0 overruns:0 frame:0
          TX packets:45091 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4366457 (4.1 Mb)  TX bytes:4366457 (4.1 Mb)
Notice the lo on its own. You are looking for any block other than the "lo" block.

The "inet addr:" will list the IP associated with the iterface. These are what you use in the "my-ip" feild.

However, if this address is in the range specified in the NAT section of the config, you have two options, that you should lookat in order.

1: Check for other IP addresses not in these ranges. As this IP may just be for a internal network, and not the internet connection.

2: Simply connect to IRC via BitchX, or using the eggdrop with both setting blanked out. Look at the "/whois" for the client and use the IP (resolve a hostname if needed) from this for the NAT setting.
S
SnOoPDoGg187
Voice
Posts: 17
Joined: Fri Apr 04, 2003 7:43 am

it won't let me run iconfig

Post by SnOoPDoGg187 »

thanks for the help ppslim but i got a problem it's not letting me run that command from anywere i tried from the dir the eggdrop is in then i went back a dir and tried and still nothing i went all the back to the main dir and still nothing.. : (

i did try commenting out the nat ip setting and just tried using the
set my-hotname "localhost"
set my-ip "i only tried one of the ips not all 3 of them should i try that?"

but it wouldn't connect to irc.. i do know what the 3 ip's are and can paste them in here if that'll help figure this problem out?..

i did /dns host on all of them except the one that was allready set in the confi file not sure were that one comes from let me know i can paste all the info i got when i did it if it'll help

thanks again appreciate the help : )
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Try an /sbin/ifconfig
Once the game is over, the king and the pawn go back in the same box.
S
SnOoPDoGg187
Voice
Posts: 17
Joined: Fri Apr 04, 2003 7:43 am

thanks

Post by SnOoPDoGg187 »

thanks caesar i'm gonna try it right now

thanks again man
S
SnOoPDoGg187
Voice
Posts: 17
Joined: Fri Apr 04, 2003 7:43 am

thanks that's were it was this is what i got when i ran it

Post by SnOoPDoGg187 »

eth0 Link encap:Ethernet HWaddr 00:E0:4C:39:12:B8
inet addr:10.0.1.5 Bcast:10.0.255.255 Mask:255.255.0.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23447814 errors:0 dropped:0 overruns:0 frame:0
TX packets:12123239 errors:0 dropped:0 overruns:5 carrier:0
collisions:0 txqueuelen:100
RX bytes:4107716597 (3917.4 Mb) TX bytes:1359329540 (1296.3 Mb)
Interrupt:11 Base address:0x7000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:110731 errors:0 dropped:0 overruns:0 frame:0
TX packets:110731 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:200714915 (191.4 Mb) TX bytes:200714915 (191.4 Mb)
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Re: thanks that's were it was this is what i got when i ran

Post by ppslim »

SnOoPDoGg187 wrote:eth0 Link encap:Ethernet HWaddr 00:E0:4C:39:12:B8
inet addr:10.0.1.5 Bcast:10.0.255.255 Mask:255.255.0.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23447814 errors:0 dropped:0 overruns:0 frame:0
TX packets:12123239 errors:0 dropped:0 overruns:5 carrier:0
collisions:0 txqueuelen:100
RX bytes:4107716597 (3917.4 Mb) TX bytes:1359329540 (1296.3 Mb)
Interrupt:11 Base address:0x7000
This is within the range talked about in the NAT section.

You should leave both the my-ip and nat-ip settings blank (preferably place a # at the front of the line).

The bot should start fine. Once on IRC, follow the steps I gave above to obtain the IP from a whois request. This value should be placed in the nat-ip setting.

If you can't get the bot to start this way, do the following.

1: Login to the shell
2: Type "get http://www.ppslim.ukshells.co.uk/prov/egghelp/getip.php"
3: Type "cat getip.php"

The IP listed is what my web-site sees you as. This may contain a transparrent proxy address, but not normaly (they use there own variable).

Use this IP in the nat-ip setting.
S
SnOoPDoGg187
Voice
Posts: 17
Joined: Fri Apr 04, 2003 7:43 am

permission denied

Post by SnOoPDoGg187 »

i finally figured it out lol but when it tries to download the file i get this

bash: --05:41:41--: command not found
snoop@jedi-linux:/$ => `getip.php'
> Resolving www.ppslim.ukshells.co.uk... done.
> Connecting to www.ppslim.ukshells.co.uk[217.10.142.172]:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: unspecified [text/plain]
> getip.php: Permission denied


any idea how to fix this?

thanks
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Check the command you are tying.

It looks like you are typing things wrong.
S
SnOoPDoGg187
Voice
Posts: 17
Joined: Fri Apr 04, 2003 7:43 am

i did it agin but same thing

Post by SnOoPDoGg187 »

wget http://www.ppslim.ukshells.co.uk/prov/egghelp/getip.php
--06:05:41-- http://www.ppslim.ukshells.co.uk/prov/egghelp/getip.php
=> `getip.php'
Resolving www.ppslim.ukshells.co.uk... done.
Connecting to www.ppslim.ukshells.co.uk[217.10.142.172]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
getip.php: Permission denied

Cannot write to `getip.php' (Permission denied).

sorry i can't type get says file or dir doesn't exist or something like that so i tried wget and it gives me that error above?

thanks
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

That means wget can't open the filename for writting.

This is either some form of limitation ont he system, or you are in the wrong directory when you type it.
S
SnOoPDoGg187
Voice
Posts: 17
Joined: Fri Apr 04, 2003 7:43 am

this should be the last time i bug ya

Post by SnOoPDoGg187 »

k i got the ip and it's not in any of the ranges it says in the config file under nat firewall the ip is 68.185.79.10 so that is the nat ip right i did what u said in

step 2 Simply connect to IRC via BitchX, or using the eggdrop with both setting blanked out. Look at the "/whois" for the client and use the IP (resolve a hostname if needed) from this for the NAT setting

i started the bot up with all the settings disabled nat-ip set my-ip set my-hostname commented out i did /whois then dns that and got the ip above

my question is what should i put for the address when using chadd botnick ip:port?

i changed 2 of them allready going to put the nat ip in for the other 2 now

thanks
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

You should use the 68.185.79.10 IP for linking.

However, this sounds liek this is a router. The router will need to have the port you wish to use forwarded - you should see the admin for this.
S
SnOoPDoGg187
Voice
Posts: 17
Joined: Fri Apr 04, 2003 7:43 am

k thanks for all the help u have given me

Post by SnOoPDoGg187 »

thanks for all the time help u have given me i reall appreciate it man

would it be k to have him set it to forward the 4 ports that are allready set
on the bots? there in the 3000-5000 range or should i chaneg them then have him forward them?

thanks again this is the last time i bug ya i swear : )

thanks alot for all the help ya given me man
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

If it is a router, then depending on what settings can be applied, I would reduce the port range you have available. So long as you have enough (5 should be plenty normaly).

Change the settings, then you will have to wait until you can get a admin to change the router setting.

Speak to the admin regarding forwarded ports.
Locked