Re: Simple NAT setup
- From: "Thommy M." <thommy.m.malmstrom@xxxxxxxxx>
- Date: Wed, 31 Jan 2007 18:58:50 GMT
Rich Teer wrote:
On Wed, 31 Jan 2007, "Thommy M. Malmström" wrote:
bigblue# cat /etc/ipf/ipnat.conf
map nge0 10.0.0.0/24 -> 0/32 proxy port ftp ftp/tcp
map nge0 10.0.0.0/24 -> 0/32 portmap tcp/udp auto
map nge0 10.0.0.0/24 -> 0/32
That looks OK, on the assumption that you're not running any
services that you want to be available from outside (like a
mail or web server).
Not yet...
bigblue# cat /etc/ipf/ipf.conf
#
# ipf.conf
#
# IP Filter rules to be loaded during startup
#
# See ipf(4) manpage for more information on
# IP Filter rules syntax.
pass in quick on tu0 from 192.168.0.0/24 to any keep state
My /etc/ipf/ipf.conf file unchanged from the default, although
that might not be optimal. :-)
This I picked up from here
http://www.mail-archive.com/ipfilter@xxxxxxxxxxxxxxxxx/msg06963.html
bigblue# routeadm
Configuration Current Current
Option Configuration System State
---------------------------------------------------------------
IPv4 forwarding enabled enabled
OK.
[...]
QUESTION: What do I need to do on my inside machine 10.0.0.2 to access
Internet?
Have you enabled your port types in /etc/ipf/pfil.ap? The appropriate
entries need to be uncommented (or added) and the ipf service restarted.
Only for the "outbound" i.e. nge Should tu be there too?
So, Rich, can't you make an easy sketch of you config for us dummies to
follow?
Apart from my pfil.ap and ipf.conf, my set up is essentailly the same
as yours. Here's a diagram of my network:
+----------------------------+ +--------------------+
+-----------+ | Sun Netra T1 105 | | Netgear GS516T |
ISP----|cable modem|----|hme1 gatekeeper hme0|----| 16 port GBE switch |
+-----------+ |24.xx.xx.xx 192.168.0.254| | |
+----------------------------+ +--------------------+
| | | |
E220R U20 SB1K ...
Server Workstations
Gatekeeper is currently running S10 3/05; an upgrade to S10 11/06 is imminent.
Thanks Rich for your prompt answer. Will try to add tu in pfil.ap when at office again...
.
- Follow-Ups:
- Re: Simple NAT setup
- From: Rich Teer
- Re: Simple NAT setup
- References:
- Simple NAT setup
- From: "Thommy M. Malmström"
- Re: Simple NAT setup
- From: Rich Teer
- Simple NAT setup
- Prev by Date: Re: Automatic Patch Report
- Next by Date: Re: Simple NAT setup
- Previous by thread: Re: Simple NAT setup
- Next by thread: Re: Simple NAT setup
- Index(es):
Relevant Pages
|