pass only bind plus redirect web

From:
Date: 08/23/02


Date: 23 Aug 2002 12:06:56 -0700

I have been trying to get this to work for awhile on my bsd-based
firewall, and would appreciate any suggestions from someone who
has tried this before.

I want to basically shut down my external interface during times
of the day that people should not be using it. Since most of the
traffic is www, I want to redirect that stuff back to an internal
(apache) web server that explains why they are not seeing the real
page and (maybe) allows them to turn it back on again with the proper
password.

If I *really* shut down the interface, then external name resolution
breaks and the browsers get a generic "cannot find server or dns" error.
So I have been playing with ipnat maps and ipf filters to just let
bind through, but no luck. With ae1 the internal network and ae0
the external, I thought the nat conf should look like

   map ae0 204.152.64.0/24 -> 209.67.50.59/32 portmap tcp/udp 10000:40000
   rdr ae1 0.0.0.0/0 port 80 -> 204.152.64.100 port 80

and the ipf ruleset should block all inbound and outbound on ae0 except

   pass out quick on ae0 proto udp from any to any port = 52 keep state

But no matter how I change it, I can't get it to work the way I want it to.
Is this the right approach? I have run out of ideas at the moment.

--
Thanks and Regards,
Paul MacAvaney
paulmac2@aol.com



Relevant Pages

  • Re: is it possible to set up a web server on a computer in a local area network?
    ... > Yeah thanks.i need help!i know the port forwarding but i do not know ... > much about the DNS or DMZ. ... If your Web server should be visible from the internet you should do: ... If your Web server should be visible from your internal network, ...
    (Fedora)
  • SSL-tunnet failed connection attempt
    ... web server with a valid SSL certificate. ... We have also setup a firewall policy to allow all our internal network ...
    (microsoft.public.isaserver)
  • Re: [opensuse] Web Server in DMZ accessing Database in Internal Network
    ... At the moment I have an Intranet web server with Apache2. ... system lies on a DRBD cluster server, with a NFS4 export of the ... declared EXT, another DMZ, and the third INT. ... and the Internal NIC on a switch to the Internal Network ...
    (SuSE)
  • Re: Vulnerability analysis tools
    ... > internal network. ... > the website (located at the web server described in item 1) depending on ... well, because none of these have real oracle sql proxy, I don't recommend ... I suggest you move from w2k to some unix or linux for the oracle server ...
    (Security-Basics)