aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Shorewall rules with amuled/amulecmd  (Read 3785 times)

S3N

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
Shorewall rules with amuled/amulecmd
« 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.
« Last Edit: January 06, 2007, 11:26:27 PM by S3N »
Logged

wardevil

  • Sr. Member
  • ****
  • Karma: -1
  • Offline Offline
  • Posts: 402
Re: Shorewall rules with amuled/amulecmd
« Reply #1 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....
Logged
Linux user nÂș289016 at Linux counter