Greetings all, I have what seems to be a very basic problem with
ipportfw under kernel 2.0.36 (with added patches for VPN and
ipportfw). I have a static external IP address (let's call if
my.ext.ip.adr) and my internal net is the familiar 192.168.1.x. To try
to setup forwarding, I've issued these commands:
ipfwadm -F -f
ipfwadm -F -p deny
ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0
ipportfw -A -t my.ext.ip.adr/8169 -R 192.168.1.4/8100
verified with:
$ ipfwadm -F -l
IP firewall forward rules, default policy: deny
type prot source destination ports
acc/m all 192.168.1.0/24 anywhere n/a
$ ipportfw -L
Prot Local Addr/Port > Remote Addr/Port
TCP my.ext.ip.adr/8169 > 192.168.1.4/8100
When I telnet to port 8100 on the internal machine 192.168.1.4 (a
Junkbuster proxy), it works fine from any of the machines on the local
net (including the box with the external connection).
However, if I try to use the ipportfw redirect, I either get
"connection refused" or a hang, no matter which interface I try (these
are all from the firewall box):
$ telnet 127.0.0.1 8169
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
$ telnet 0.0.0.0 8169
Trying 0.0.0.0...
telnet: Unable to connect to remote host: Connection refused
$ telnet 216.87.134.14 8169
Trying 216.87.134.14...
(hangs)
I've tried using other interfaces for the ipportfw rule (e.g. 0,0,0,0
and 127.0.0.1), but the results are the same.
Any ideas? For those who can accept that I'm running 2.0.x, that's all
I have for now; thanks in advance for any and all info.
For those who might (gently or otherwise) suggest upgrading to 2.2.x
or 2.4.x, this is on an old 386/40 ISA box, and something in 2.0.37
completely breaks my machine such that it won't even boot (goes into
an endless reboot loop after "Uncompressing linuz..."), so anything >
2.0.36 is out of the question.
Thanks in advance for any and all info!
Brad