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

Dynamic connections with -current pppd



Earlier I noted the missing capability of ipnat to parse out interface
names like it used to. Untill the necessary patches are put in place the
following ip-up script does the job. It's what I use.

>#!/bin/sh
>echo "map ppp0 192.168.1.0/24 -> $4/32 portmap tcp/udp 10000:20000" |
>/sbin/ipna
>t -CF -f -

--------
In 1794, James Madison pointed out "the old trick of turning every
contingency into a resource for accumulating force in the government."

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GIT/CS d++>d- S: a- c++ UB++++$ P++ L- E W+$ N+ O K-- w---$ O++ M+ V--
PS+++ PE++ Y+ PGP++ t 5 X+ R- !tv b+ DI++ D+ G e++>+++ h-- !r y
------END GEEK CODE BLOCK------