On Friday 19 December 2003 11:58, Laurent Cheylus wrote:
> Hi,
>
> extract from my pf.conf to allow redirection and incoming connections from
> Emule clients to an internal LAN computer (192.169.0.100) :
>
> $EXT is my external interface (connected to my ISP) :
>
> # Redirect TCP/4662 and UDP/4672 for Emule on 192.168.0.100
> rdr on $EXT proto tcp from any to any port 4662 -> 192.168.0.100 port 4662
> rdr on $EXT proto udp from any to any port 4672 -> 192.168.0.100 port 4672
>
> # Allow ports UDP/4672, TCP/4662 for EDonkey
> pass in on $EXT inet proto tcp from any to 192.168.0.100 port = 4662 keep
> state
> pass in on $EXT inet proto udp from any to 192.168.0.100 port = 4672 keep
> state
>
> With this conf, I have Emule high ID on every server :-)
>
> A++ Foxy

As long as you don't have/want to block specific IPs from redirection you 
might just want to add "pass" to the "rdr" rules, like so:

rdr pass on $EXT proto tcp from any to any port 4662 -> $emule_ip port 4662
rdr pass on $EXT proto udp from any to any port 4672 -> $emule_ip port 4672

-- 
Best regards,                           | [EMAIL PROTECTED]
Max Laier                               | ICQ #67774661
http://pf4freebsd.love2party.net/       | [EMAIL PROTECTED] #DragonFlyBSD

Reply via email to