[pptp-server] Port Forwarding

Gill, Vern vgill at technologist.com
Thu Mar 22 11:59:54 CST 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>Also, how does one force a module to permanently stay after
>rebooting?  I  use insmod to pop it into a list somewhere, it's in
>modules.conf, how come  it won't stay?  Do I need to use modprobe
>instead?

Put this in the top of your ipchains script and it will make sure all
the neccessary modules get loaded everytime you run it.
Any that it doesn't need will "autoclean" themselves"

logger -t masq-firewall -s "Loading Masquerading Modules"
for x in ` find /lib/modules/$(uname -r)/ -iname ip_\* | cut -d"/"
- -f6 | cut -d"." -f1 | grep -v raudio \
| grep -v ip_masq_pptp ` ; do ` /sbin/modprobe -a -k -s -v $x ` ;
| done 
# Do RealAudio separately
/sbin/modprobe -a -k -s -v ip_masq_raudio
ports=554,7070,7071,6970,6971
# Do PPTP Masq seperately
/sbin/modprobe -a -s -v ip_masq_pptp
# Do Quake Module seperately
/sbin/modprobe -a -k -s -v ip_masq_quake 26000,27000,27910,27960
logger -t masq-firewall -s "Loading Masquerdaing Modules Done!"


Again, not neccessarily the BEST way to skin a cat, but certainly
works.

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>

iQA/AwUBOro85xeamMdwy9TXEQLAhwCgiW5ds1cuSfBeWMB4O3oEDU1oJMsAoOL/
Yts7PwjLjIWj/lA9rhbZmYWi
=acyo
-----END PGP SIGNATURE-----



More information about the pptp-server mailing list