aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Behind a NATting Router. Any Hope?  (Read 1693 times)

Quantum

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Behind a NATting Router. Any Hope?
« on: June 09, 2005, 02:52:03 AM »

I am behind a router which NATs all traffic, and I cannot get into it to port-forward the needed ports.

Is there any P2P system I can use?
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Behind a NATting Router. Any Hope?
« Reply #1 on: June 09, 2005, 03:03:35 AM »

You can use aMule :P You'll be lowid, but you'll download anyway :)
Logged

Quantum

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: Behind a NATting Router. Any Hope?
« Reply #2 on: June 09, 2005, 02:56:30 PM »

Really?

I guess this means ~15kbps? (bits, or bytes?)  Alot of people don't write the b and B correctly, so it's never clear.  If bytes, there is hope for getting the knoppix iso in 11 hours.  But if bits... 112 hours, and hopeless.

BTW, it might be of interest that I'm running aMule in a chroot jail, for security.  I just followed the howto for Apache in a chroot jail.  For the apps I wanted in the jail, used ldd to determine the libraries they depend on and copied those into the jail, which is fairly tedious, but I think worth it since I was once compromised through Overnet.  Since aMule is GTK, it must connect with the /tmp/X11-unix/X0 socket, and so it's
# mount --bind /tmp/.X11-unix /chroot/tmp/.X11-unix
In actually running the app, to find more subtle problems of missing files in the chroot jail, I used
$ strace amule
... again tedious, but worth it.

I've just done backups, and everything in the chroot partition required to run aMule and giFT compresses down to 13.5MB, so it must be ~28MB residing in a 7GB P2P partition.  Since I'm bind-mounting a subdirectory on the main partition (which has 100GB free) for downloads, I don't really need a large chroot partition after all!  Looks like it needs to be 50MB, at most.

Only things I haven't worked out are:
- How to su to the user who owns X to xhost + and then exit the su without killing the script.  Sudo doesn't do the job.
- Get the chroot amule running over VNC.  I can start it over VNC, but the GUI comes up on the remote machine!  
DISPLAY=:0.1 amule
... doesn't do it.

Only thing I don't know is, whether su is secure from buffer overflows, and if not, whether this would allow exit from the chroot.

In fact, since you've helped me, here's my chroot amule startup script:
Code: [Select]
#!/bin/bash

# See Apache in a chroot jail howto:   [URL]http://www.faqs.org/docs/securing/chap29sec254.html[/URL]

echo "Run as root..."

# Enable X display with bind-mount
# (Optionally, in fstab:  /tmp.X11-unix /extra/tmp/.X11-unix none bind 0 0, etc)
echo "Bind-mounts..."
mount --bind /tmp/.X11-unix /chroot/tmp/.X11-unix
mount --bind /dl/mule /chroot/dl     # /dl is in the main part, and /chroot is in a separate part.
mount --bind /home/{reg.user}/.gtk-liquid /chroot/home/{muleuser}/.gtk-liquid
mount --bind /home/{reg.user}/.icons /chroot/home/{muleuser}/.icons
mount --bind /usr/share/fonts /chroot/usr/share/fonts
mount --bind /usr/share/icons /chroot/usr/share/icons
mount --bind /usr/share/pixmaps /chroot/usr/share/pixmaps

# Enable X for all local users
su {reg.user}
xhost +localhost
exit

# Chroot
/usr/sbin/chroot /chroot/ /usr/bin/bash
su {muleuser}
amule
exit

umount /chroot/usr/share/pixmaps
umount /chroot/usr/share/icons
umount /chroot/usr/share/fonts
umount /chroot/home/{muleuser}/.icons
umount /chroot/home/{muleuser}/.gtk-liquid
umount /chroot/dl
umount /chroot/tmp/.X11-unix


Thank you for aMule!



.
« Last Edit: June 09, 2005, 04:13:55 PM by Quantum »
Logged