BumQ

วันเสาร์ที่ 7 เมษายน พ.ศ. 2555

Howto pass eMule/eDonkey traffic through SME

Port forwarding is different on SE 5.5, SME 5.6 and SME 6.0. On SME 5.5 you can configure masquerade whereas on SME 5.6 you need to install a port forwarding contribution. On SME 6.0 port forwarding is already in stalled and you only need to configure. Common for all is the fact that you need to open up for incoming requests on certain ports.
eDonkey and eMule uses three ports:
Protocol Port Description
TCP 4661 To connect with a server
TCP 4662 To connect with other clients
UDP 4665 To communicate with servers other than the one you are connected to.
TCP 4663 Is also used with the command line client when it is configured to allow remote connections. This is the case when using a Graphical Interface (such as the Java Interface) with the client.

SME 5.5
Use port forwarding to forward traffic from the relevant TCP/UDP ports from the SME box to a PC inside your own network.
[root@e-smith ]# ipmasqadm portfw -a -P tcp -L SME_IP  4661 -R PC_IP 4661
[root@e-smith ]# ipmasqadm portfw -a -P tcp -L SME_IP  4662 -R PC_IP 4662
[root@e-smith ]# ipmasqadm portfw -a -P tcp -L SME_IP  4663 -R PC_IP 4663
[root@e-smith ]# ipmasqadm portfw -a -P udp -L SME_IP  4665 -R PC_IP 4665
List your port forwardings to make sure that your entered the information correctly. 
[root@e-smith ]# ipmasqadm portfw -l
SME 5.6
On 5.6 you need to install port forwarding, since it is not part of the standard installation.
[root@e-smith ]# rpm -Uvh http://sme.swerts-knudsen.dk/downloads/e-smith-packetfilter-1.13.0-04.noarch.rpm
[root@e-smith ]# rpm -Uvh http://sme.swerts-knudsen.dk/downloads/e-smith-portforwarding-0.1.0-20.noarch.rpm
[root@e-smith ]# /sbin/e-smith/signal-event post-upgrade
[root@e-smith ]# /sbin/e-smith/signal-event reboot
After the reboot you can use the server-manager to configure your port forwarding (Configuration -> Port Forwarding).
For eMule you need the following (as a minimum):
Protocol Source Port Destination Host IP Address Destination Port Action
TCP 4662 192.168.x.x 4662 Remove
UDP 4662 192.168.x.x 4662 Remove
where X is the last part of the local IP address of the PC with the eMule client.
You should now have a high ID in eDonkey/eMule. Note that this setup only allow for a SINGLE eDonkey/eMule client on your network!

ไม่มีความคิดเห็น:

แสดงความคิดเห็น