aMule Forum

English => en_Linux => Topic started by: S3N on January 06, 2007, 11:23:00 PM

Title: Shorewall rules with amuled/amulecmd
Post by: S3N on January 06, 2007, 11:23:00 PM
Hi all, I've a debian sarge server (Nat, firewall, dhcp, dns and amuled) with amule-daemon 2.1.3.
I've this configuration in shorewall:

interfaces:
net   eth1   detect    routefilter,tcpflags,blacklist
lan   eth0    detect    blacklist,dhcp

zones:
net     Net
lan      Local

policy:
fw        net       DROP           info
lan       net       DROP           info
fw        lan        DROP           info
lan       fw         DROP           info
net      all          DROP           info
all        all          REJECT        info


In the rules file there are lines to permit lan access to amule and lines for the server access.
Here lines for lan access:

ACCEPT  lan      net      tcp       4662,4661,4242,3000
ACCEPT  lan      net      udp     4672,4673,4665
DNAT      net      lan      tcp      4662
DNAT      net      lan      udp     4672,4673,4665


And the same ( with fw and ACCEPT instead of lan and DNAT respectivly) for the server host.

With lan clients I obtain HighID and Kad is ok.
With server LowID and kad is firewalled/disconnected.
Anyone can help me to understand why?
Thanks.
Title: Re: Shorewall rules with amuled/amulecmd
Post by: wardevil on January 16, 2007, 05:44:31 PM
You have to set policy from fw to net to accept:
In /etc/shorewall/policy
fw   net    ACCEPT
assuming that amuled is running in the firewall itself.

Cheers....