From: Ferdy Hanssen <hanssen@Cam031205.student.utwente.nl>
Subject: Masquerading and FTP
Date: Wed, 30 Jul 1997 20:43:27 +0200 (MET DST) [thread overview]
Message-ID: <5d4531c12396be44d8efdf4e18b61774.axp-list@archive.invalid> (raw)
Hello,
I'm currently using my Alpha running Linux as a firewall between the
internet and my private network. Most things work, but I'm trying to get
FTP working. I activated my firewall using the following commands (my
real internet IP-address is a.b.c.d, my private network uses the addresses
10.0.0.x with a netmask of 255.255.255.0, the IP-adress at the private
network side of the firewall is 10.0.0.1):
/sbin/ipfwadm -I -p accept
/sbin/ipfwadm -I -f
/sbin/ipfwadm -O -p accept
/sbin/ipfwadm -O -f
/sbin/ipfwadm -F -p deny
/sbin/ipfwadm -F -f
/sbin/ipfwadm -F -a masquerade -P all -S 10.0.0.0/24 -D 0.0.0.0/0
This is run after both networking cards are configured using ifconfig and
route like this:
ifconfig eth0 a.b.c.d netmask 255.255.0.0 broadcast a.b.255.255
route add -net a.b.0.0 netmask 255.255.0.0 dev eth0
ifconfig eth1 10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255
route add -net 10.0.0.0 netmask 255.255.255.0 dev eth1
route add default gw a.b.p.q dev eth0
Then, in order to get FTP working, I insmod the relevant module:
/sbin/insmod /lib/modules/`uname -r`/ipv4/ip_masq_ftp.o
But still, from within the firewall, FTP only works using passive mode,
but this module should enable active FTP as well.
It worked when the firewall was an Intel machine, but that changed
recently.
I'm using RedHat 4.2, with a self-compiled kernel with as few modules as
possible (all usually needed stuff is compiled in, only the ip_masq_*
modules as left, of which I only use the ip_masq_ftp module. The kernel
is a pristine 2.0.30 with axp-diffs applied.
Does anyone have an idea? Did anyone get this to work? I could use a few
hints :)
Ferdy T.Y. Hanssen, Student at Dept. of Computer Science, University of Twente
E-mail: hanssen@cs.utwente.nl or hanssen@ovidius.student.utwente.nl
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1997-07-30 18:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-07-30 18:43 Ferdy Hanssen [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-07-30 19:18 Masquerading and FTP Stephen Williams
1997-07-30 20:05 wsb
1997-07-30 21:23 Ferdy Hanssen
[not found] <Pine.LNX.3.95.970730202148.4503A-100000@ovidius.student.utwente.nl>
1997-07-30 22:18 ` David R. McGown
1997-07-30 22:28 Rick Windham
1997-07-31 0:03 Michal Jaegermann
1997-07-31 0:49 wsb
[not found] <Pine.LNX.3.95.970730180641.15833A-100000@bax.davmar.bog>
1997-07-31 7:43 ` Ferdy Hanssen
[not found] <202911182211.OAA12065@icarus.icarus.com>
1997-08-01 23:11 ` Giritharan Rashiyamany
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox