[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IP masquarading



I use user ppp (a.k.a. user-ppp) and launch it as ppp -auto <my_isp> where
<my_isp> is an entry in my /etc/ppp/ppp.conf file.

/etc/ppp/ppp.conf:
default:
 set log Phase Connect Chat LCP IPCP CCP tun command
 set device /dev/tty01    # <-- should be cua01 for dial-in/out ports
 set speed 115200
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 60 CONNECT"
# modem string is whatever works for you!

# ISP login uses unix-style login -- warning: make this root-read-only
# because it holds your login and password in the chat line
my_isp:
 set phone 5551212
 set login "ABORT NO\\sCARRIER TIMEOUT 5 name:--name: NAME word: SECRET"
 set timeout 180
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 # temp until assigned
 delete ALL     # delete routes
 add default HISADDR  # make remote machine default route
 enable dns  # if your ISP assigns your DNS server dynamically

I haven't tried to do NAT'ing with this setup. The docs are good and the
FreeBSD handbook also has a good chapter on it.

Ciao!
 --Louis


Louis Bertrand, Bowmanville, ON, Canada
<louis@signalpath.on.ca>
OpenBSD: Security matters  <www.OpenBSD.org>

On Tue, 5 Jan 1999, Omar wrote:

> I got it working. How can i set it up so that when I make a request it
> aoutomaticly dials? I think it's called dial on demand. thanks
> -----Original Message-----
> From: Matthew Patton <matthew.patton@ra.pae.osd.mil>
> To: Omar <aldahir@communique.net>
> Date: Monday, January 04, 1999 8:07 AM
> Subject: Re: IP masquarading
> 
> 
> >> The distribution is OpenBSD 2.2 on an i386.
> >
> >1st, get a half way current release of the OS. IPFILTER and IPNAT are
> >kernel options not in the GENERIC kernel as I recall. $30 for a CD or a
> >download are hardly what you'd call expensive. Upgrade.
> 
>