> On Sat, 06 May 2000 17:40:08 GMT, John Bokma
> >webserver (I.100) <---> (I.70) firewall (E.112) <---> laptop (E.110)
> >I.100 = xxx.xxx.xxx.100
> >E.112 = yyy.yyy.yyy.112
> >ipmasqadm portfw -a -P tcp -L E.112 80 -R I.100 80
> >ipchains -I forward -p tcp -s I.100/32 80 -j MASQ
> Tested this here, works like a charm. So the idea is cool.
Yep: but I was using my personal box as webserver which has
a not the firewall box as gateway... Guess what :-). Even worse
the gateway configured was a firewall connected to the internet,
so I flushed all the returning packets :-)
So I solved the problem: make the firewall your gateway :-)
(Normally this is always the case, but I had 2 firewalls connected
to the hub)
Quote:> >This doesn't work :-(. With ipchains -L -M I see entries added when
> >I use lynx E.112 on the laptop,
> Which means the portfw module does its job. What does the entry say?
:-) I stripped the box down to almost nothing, ie. it hasn't even got
telnet
& friends, hence I didn't include them.
Quote:> >but I don't see anything in the access_log on the I.100 webserver box...
> >How can I debug this?
> First of all... can you connect to the web server directly from the
> firewall without problem? If you can't, your routing table is probably
> flucked, or you're blocking traffic somehow. It's not the masq code
> in that case anyways.
> (Don't need lynx on the firewall, just telnet I.100 80 and type "GET /")
I also followed your recommendations in some old postings, turn on logging.
I saw the packets leaving the box:
ipchains -A output -p tcp -d I.100 -l -j ACCEPT
So after some thinking all became clear... The box is *not* the gateway :-(
Stupid mistake...
Quote:> If you can, log incoming tcp connections on the webserver and try to
> connect from the laptop. Does the tcp connection ever arrive there?
Nope IIRC. The gateway thingy has higher priority??
Anyway, thanks for the help and especially your previous postings which
I found on deja which inspired me do use the -l logging and watch the
messages file.
Quote:> And John... watch out for viruses ;-)
He he he. This is an "inside" joke, most people reading this group don't
understand this one. I posted a lot of messages on the "ILOVEYOU"
virus in a dutch abuse news group. I warned people not to think they
can sleep without any worries when they have a Linux box. It is possible
to write a worm/virus which can do serious harm on a linux box.
I'll certainly watch out. Being paranoid is always safe :-)
John
--
C A S T L E A M B E R http://www.castleamber.com/