login
Header Space

 
 

Re: nat trouble accessing web

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Daniel Melameth <daniel@...>, <misc@...>
Date: Wednesday, June 27, 2007 - 10:05 am

Hello Daniel,

i have the following configuration:

LAN--------[ProxyOpenBSD]-------[FirewallOpenBSD]-----(internet)

Your configuration is similar to mine, on the Proxy machine i do not use nat (i dont need it), the proxy machine is my default gateway.On the Firewall i have a rule that allows pass all the traffic that comes from the proxy.

Just for giving you a clue, i will post my pf.conf from my firewall.

I guess you have to set up your cisco to allow pass just the traffic you want, and tells the bsd to let pass what comes from cisco to any distanation.

My proxy is just a router, with few rules that blocks source and destinations.


I hope this can help ...

# Macros

ext_if="xl0"
dmz_if="fxp0"
int_if="fxp0"
ext_ip="x.x.x.x"
#External NAME SERVERS
NsV="{ 200.75.51.132 , 200.75.51.133 ,200.21.200.2 }"
Lan="192.168.0.0/24"
#SSH from LAN
SshC="192.168.0.3"
#dmz
SdOd="192.168.10.252"
Proxy="10.4.1.3"


#OPtioins

#Don't Filter on the loopback interface
set block-policy drop
set skip on lo



scrub in all
scrub out on $ext_if all random-id

nat on $ext_if from !($ext_if) -> $ext_ip

block in on { rl0, fxp0, xl0 } all
block out on { rl0, fxp0, xl0 } all
pass out keep state

#pass quick on $int_if
antispoof quick for { lo $int_if $dmz_if}


# HTTP, HTTPS
pass in on $int_if proto tcp from $Proxy to any port {80,8880,443 ,1863} keep state
pass out on $ext_if proto tcp from $Proxy to any port {80,8880,443 ,1863}  keep state

#dns 
pass in on $int_if proto udp from $Unxs to $NsV port 53 keep state
pass out on $ext_if proto udp from $Unxs to $NsV port 53  keep state







Laptop------->Cisco1721--(gre0)---->Openbsd[doing nat]--->internet ---->




-------- Original-Nachricht --------
Datum: Tue, 26 Jun 2007 21:30:52 -0600
Von: "Daniel Melameth" <daniel@melameth.com>
An: misc@openbsd.org
Betreff: Re: nat trouble accessing web


-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
nat trouble accessing web, Lawrence Horvath, (Tue Jun 26, 1:45 am)
Re: nat trouble accessing web, Daniel Melameth, (Tue Jun 26, 11:30 pm)
Re: nat trouble accessing web, Jorge Valbuena, (Wed Jun 27, 10:05 am)
Re: nat trouble accessing web, Lawrence Horvath, (Wed Jun 27, 2:40 am)
Re: nat trouble accessing web, Stuart Henderson, (Wed Jun 27, 5:44 am)
speck-geostationary