Enable filesharing for one box

Anders Fugmann email hidden
Wed Mar 19 16:52:04 CET 2003


Stephan Menzel wrote:
> Hello,
> 
> i'm using fiaif for a very small home network with xDSL dialup connection on my Redhat 8.0. The net simply looks like this:
>                                         
>                      __________
>     internet - ppp0 |          |
>    -----------------| Firewall |----eth0(192.68.100.0/24)
>       (a.b.c.d)     |__________|
> 
>                    192.168.100.100
> 
> I am using mostly default configuration, accepting from EXT only ssh and everything works fine. But now i want to enable file sharing for one of the LAN clients. Using mldonkey, i think i have to route 4661 and 4662.
> Is this possible? Can anyone give me a clue? I know, this might be a problem for some, but i want to learn and so i will try to get this working.

I have no direct experience with mldonkey, but on their homepage i found 
that you need to forward tcp/4662 and udp/4666 in order for clients on 
the internet to connect and retrive files from your machine.

In fiaif, this is accomplished by entering REDIRECT rules in the zone 
for your internet connection (normally the EXT zone). To forward to a 
machine with ip address 192.68.100.5 (replace with the actual ip 
address), add the following lines to zone.ext:

REDIRECT_MLDONKEY1="tcp 4662 0.0.0.0/0=>0.0.0.0/0 192.68.100.5:4662"
REDIRECT_MLDONKEY2="udp 4666 0.0.0.0/0=>0.0.0.0/0 192.68.100.5:4666"

And allow these packets to enter the internal zone by inserting the 
following FORWARD rules to zone.int (assuming this covers the 
192.68.100.0/24 network):

FORWARD[0]="EXT ACCEPT tcp 4662 0.0.0.0/0=>192.68.100.5/32"
FORWARD[1]="EXT ACCEPT udp 4666 0.0.0.0/0=>192.68.100.5/32"

> 
> I am using the most recent customized Redhat kernel 2.4.18-28-8.0
> iptables 1.2.6a
> 
> Thank you very much in advance...
> 
> Stephan
> 
Regards
Anders Fugmann





More information about the fiaif mailing list