[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.

That bit's easy - just add the -alias switch to the command line :-)

> Ciao!
>  --Louis
[.....]

-- 
Brian <brian@Awfulhak.org> <brian@FreeBSD.org> <brian@OpenBSD.org>
      <http://www.Awfulhak.org>
Don't _EVER_ lose your sense of humour !