Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

for security reasons I am running aMule inside VirtualBox.

  • Guest and Host systems are Linux (to be more specific Arch 64 distro)
  • Host system has public ip directly connected to internet (no router)
  • Guest System I almost pure after installation (no iptables, etc only VirtualBox addons)
  • I'd like to setup three ports for aMule: 4884, 4885, 4887
  • I'd love to use NAT VirtualBox interface, if possible

For this case I've made following forwarding rules:

VBoxManage modifyvm "$vm" --natpf1 "amule_u4,udp,,4884,,4884"
VBoxManage modifyvm "$vm" --natpf1 "amule_u5,udp,,4885,,4885"
VBoxManage modifyvm "$vm" --natpf1 "amule_u7,udp,,4887,,4887"
VBoxManage modifyvm "$vm" --natpf1 "amule_t4,tcp,,4884,,4884"
VBoxManage modifyvm "$vm" --natpf1 "amule_t5,tcp,,4885,,4885"
VBoxManage modifyvm "$vm" --natpf1 "amule_t7,tcp,,4887,,4887"

On Host I've added to /etc/hosts.allow :

# amule
4884: ALL
4885: ALL
4887: ALL

Sanity check made with netcat works:

netcat -l -p 4885 # inside VM
netcat $ip 4885  # from "outside world"

To ensure:

aMule standard TCP Port: 4884
UDP port for server requests (TCP+3): 4887
Extended UDP port (Kad/global search): 4885

But aMule gets only "Low-ID" and "Kad: Firewalled".

Is it possible to configure VM's Nat interface and aMule to cooperate nicely ? If yes, how ?

If it is not possible, why? And how to do this other way?

share|improve this question
    
Cross linking: forum.amule.org/index.php?topic=19969.0 –  Grzegorz Wierzowiecki Aug 14 '12 at 19:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.