Hello,

 Who knows how to configure on demand pppd with network sharing and
firewall capabilities?
 I used this link http://www.nic.com/~cannon/Linux/

 1. I configured my modem.
 2. included /etc/modules.conf
    alias ppp-compress-21 bsd_comp
    alias ppp-compress-24 ppp_deflate
    alias ppp-compress-26 ppp_deflate
 3. Configured my connection with linuxconf        #works fine
 4. Modified /etc/ppp/options:
    demand
    idle 60
    ipcp-accept-remote
    ipcp-accept-local
    lock
    noauth
    defaultroute
    modem 112000 crtscts
    connect '/usr/sbin/chat -v -f
/etc/sysconfig/network-scripts/chat-ppp0'
 5. Configured /etc/ppp/masq (Yes I see that is for kernel 2.0 but with
MDK-7.2 it works also)
#!/bin/sh
# /etc/ppp/masq  -- start/stop IP masquerade services (2.0 kernels)

NAME=$0
case "$1" in
  start)
        echo -n "Starting IP Masquerade support... "
# flush current settings:
        /sbin/ipfwadm -O -f
        /sbin/ipfwadm -I -f
        /sbin/ipfwadm -F -f
# default policy is "deny"
        /sbin/ipfwadm -F -p deny
# block Windows housekeeping traffic from triggering autodial etc:
        /sbin/ipfwadm -F -a deny -P tcp -S 0.0.0.0/0 137:139
        /sbin/ipfwadm -F -a deny -P udp -S 0.0.0.0/0 137:139
# provide masquerade services for the local machines - fix these
addresses
# to match your LAN and be sure to include the Linux machine itself!
        /sbin/ipfwadm -F -a m -S 10.254.254.25 -D 0.0.0.0/0 -P all
        /sbin/ipfwadm -F -a m -S 10.254.254.39 -D 0.0.0.0/0 -P all
        /sbin/ipfwadm -F -a m -S 10.254.254.34 -D 0.0.0.0/0 -P all
# install these modules if you have a need for them...
#       /sbin/insmod ip_masq_cuseeme
        /sbin/insmod ip_masq_ftp
#       /sbin/insmod ip_masq_irc
#       /sbin/insmod ip_masq_quake
#       /sbin/insmod ip_masq_raudio
#       /sbin/insmod ip_masq_vdolive
        echo "Done."
        ;;

 stop)
        echo -n "Stopping IP masquerade..."
#        /sbin/rmmod ip_masq_cuseeme
        /sbin/rmmod ip_masq_ftp
#        /sbin/rmmod ip_masq_irc
#        /sbin/rmmod ip_masq_quake
#        /sbin/rmmod ip_masq_raudio
#        /sbin/rmmod ip_masq_vdolive
        /sbin/ipfwadm -F -f
        echo "Done."
        ;;

 *)
        echo "Usage:  /etc/ppp/$NAME {start|stop}"
        exit 1
        ;;
esac

exit 0

 6. ppp0 starts on-boot, and ppp0 is default route. Starting ppp0 it
hangs & exits with error mesage: "Bringing up interface ppp0:  Failed to
activate ppp0, retrying in the background"
 7. i start my "/etc/ppp/masq start"
 8. i start "pppd :10.0.0.2"        (And here it hangs and doesn't gives
me back prompt, is it ok?)

 9. It works! ppp-on-demand

 Now who can point me to the right address, to configure normally
ppp-on-demand with MDK-7.2 using all new features.

 Thank you

 Dovydas


Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.

Reply via email to