PF - port redirection failure
From: Antonio F (saphyr@infomaniak.ch)Date: 12/21/01
- Previous message: Yizhar Hurwitz: "Re: what is the last version for the cisco pix firewall 605 ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Antonio F" <saphyr@infomaniak.ch> Date: Fri, 21 Dec 2001 19:01:53 +0100
Hi all !
I am in a big trouble... since this morning I am trying
to solve this proble. If someone could help me,. it
would be really appreciated....
Situation:
Internal network NATed through an Openbsd 3.0
gateway, with some internal services which need to
be redirected through the gateway (pf is used).
The NAT is working well from the inside point of view,
and the external port redirection from 7100 to internal
22 is working.
Problem:
The 8888 external port redirection is not working
(should point to an internal machine web server port 8080).
Question:
Why is the ssh redirection working ? But not the web
redirection ?
There are more informations further in this message...
Thank you for reading !
.Antonio F
============nat.conf=============
#internal: rl0
#external: xl0
#NAT
nat on xl0 from 192.168.111.0/24 to any -> 194.212.231.110
#Redirects
rdr on xl0 from any to any port 8888 -> 192.168.1.21 port 8080
rdr on xl0 from any to any port 7100 -> 192.168.1.21 port 22
==============================
=============pf.conf============
nonRoutableIp="{ 127.0.0.1/8, 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8}"
ifInternal="rl0"
ifExternal="xl0"
netInternal="192.168.1.0/24"
gate="194.212.231.110/32"
scrub in on $ifExternal all
pass out quick on lo0 all
pass in quick on lo0 all
### Protection spoofing
block in log quick on $ifExternal from $nonRoutableIp to any
block out log quick on $ifExternal from any to $nonRoutableIp
### Services
pass in quick on $ifExternal inet proto tcp from any to any port = 22
flags S keep state
pass in log quick on $ifExternal inet proto { tcp, udp } from any to any
port = 8888 flags S
keep state
pass in log quick on $ifExternal inet proto tcp from any to any port = 7100
flags S keep st
ate
### Defaults
block in quick on $ifExternal from any to any
pass out quick on $ifExternal from $gate to any keep state
==============================
- Next message: Bruno Wolff III: "Re: web downoload robots"
- Previous message: Yizhar Hurwitz: "Re: what is the last version for the cisco pix firewall 605 ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|