>I am currently running Linux 1.3.68 (yes, an old version, but it works
>and I rarely use the server) using the masquerade option to allow my
>and my roommates machine to use my dial-up connection at the same
>time. It works great for any outgoing connections, or connections I
>I was wondering if it was possible to configure the firewalling and
>masquerading options so that any incoming connections (e.g. FTP) could
>be automatically routed to another machine on my network. For
>example, i would disable the FTP server on my linux box and run an FTP
>server on my Win95 box. When anyone from outside my network attempted
>to ftp to my internet address, they would automatically be re-routed
>to my Win95 machine through the masqueraded connection.
>I will post a summary message on what I modified to this newsgroup
>when (if) I get everything working.
After some experimentation, I found that there were errors in my syntax in
a previous reply to your post.
Should go something like this:
Linux IP x.x.x.1
Windows 95 x.x.x.2
ipfwadm -F -a acc -P tcp -S 0.0.0.0/0 21 -D x.x.x.2/32 21
ipfwadm -F -a acc -P udp -S 0.0.0.0/0 21 -D x.x.x.2/32 21
--- OR ---
Where yyyy >= 1000 (decimal) ( choose one not already defined in /etc/services )
ipfwadm -F -a acc -P tcp -S 0.0.0.0/0 yyyy -D x.x.x.2/32 21
ipfwadm -F -a acc -P udp -S 0.0.0.0/0 yyyy -D x.x.x.2/32 21
ipfwadm -F -a acc -P tcp -S 0.0.0.0/0 21 -D x.x.x.1/32 21
ipfwadm -F -a acc -P udp -S 0.0.0.0/0 21 -D x.x.x.1/32 21
The firest example will only allow ftp requests on the normal ftp port of
21, that are then redirected to the Win 95 box.
The second example would allow you to receive ftp's from the net on both
the Linux box and the Win 95 box. The only thing different is what
tcp/udp port is requested by the client.
Hope this helps,
John B. (Brent) Williams