Software: Apache/2.2.3 (CentOS). PHP/5.1.6 uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /usr/share/doc/isdn4k-utils-3.2/ drwxr-xr-x |
Viewing file: i4lfaq-12.html (24.78 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | 12. syncppp: Sync PPP12.1 syncppp_whichppp: pppd, ipppd, syncPPP, asyncPPP .. what is they? Which should I use?See this question in the asnyc PPP; section: asyncppp_whichppp. 12.2 syncppp_compile: How do I compile isdn4linux with syncPPP?To compile the kernel with syncPPP included in ISDN4Linux, you have to answer the appropriate questions with "yes". Don't forget to load the module slhc.o before isdn.o, if VJ compression is not compiled into the kernel e.g. if you have no PPP and no CSLIP in the kernel. (Note that the use of VJ is problematic for elder kernels and does not work reliably - however, the support should still be included in the kernel, since there can otherwise be side effects.) 12.3 syncppp_netinterface: How should I name my network interface?The name of the network interface should always begin with
"ippp", not with "syncppp" or
"isdn"; otherwise the communication with ipppd will not work
correctly. Please note that at least one of the interfaces has to be
"ippp0", otherwise ipppd will not start. Check your
interfaces with the command 12.4 syncppp_config: How do I configure isdn4linux with syncPPP?Synchronous PPP is simply another encapsulation for ISDN4Linux. This encapsulation is called "syncppp". Here is an example to configure the link level device ippp0: /sbin/isdnctrl addif ippp0 /sbin/isdnctrl encap ippp0 syncppp Please note that syncppp is very peculiar about the names of the device. Only devices starting with "ippp" will work, at least one interface has to be named ippp0 (see question syncppp_netinterface for details). All ippp* devices in use must be configured separately. Each ippp* device should be assigned to its own IP address (routing!). Several ippp* devices can be assigned to a single MSN. Several callers can then simultaneously use this MSN. To use these devices you need the program ipppd has an additional option: "useifip" uses the IP address of the connected network interface (if it is not 0.0.0.0). (Even then, ipppd tries to use the pointopoint address as the remote IP.) For the beginning, disable all compression (lzs/stac, bsd, van jacobson), later you can try to enable it (see question syncppp_compression). It is very important to set up the authentication information properly. Improper authentication is probably the most frequently reported problem on the mailing list. Please, work through section pap completely yourself, before asking others for help. You can find an example configuration in the file You can also run several ipppds to allow for different configurations,
in such a case use the 12.5 syncppp_busy: How can I tell if a connection is unsuccessful (busy)?When giving the option 12.6 syncppp_logindelay: How can I reduce login delay?You can write out a login session with ("Debug-Log"), and see which options the other computer is refusing. Next time, configure ipppd without these unused options. A further side effect is that such unused options increase the redundance (e.g. when the other computer has bugs and refuses the options incorrectly). To create a log file, see "How to I create a log for ipppd". 12.7 syncppp_2configs: I want to talk to remote machines which needs different configurations. The only way I found to do this is to kill the ipppd and start a new one with another config to connect to the second machine.You must bind a network interface explicitly to an ippp device, where you can connect a (for this interface) individually configured ipppd. With the (unfortunately poorly documented) command isdnctrl pppbind interface Number you can link the interface interface to the device ipppNummer. You can release the link with "pppunbind". 12.8 syncppp_pppbind: How does the (little-documented) "pppbind" command in isdnctrl work?You have to first know how ipppd gets its data. All data that come in over the ISDN line is received by the network devices (these are set up with isdnctrl). Then the data given to one of the /dev/ippp* devices - to one where a ipppd daemon is waiting for data. To the network interfaces, all ipppd's appear to be able to handle the just-received data - therefore it is normally impossible to predict which ipppd will receive data from which network interface. In practice, you usually install several ipppd's with differing configurations. Each of these should receive data exclusively from a certain network interface (that has also be specially configured). The "pppdbind" command serves just this purpose. With: "isdnctrl pppbind interface number" attaches the interface interface to the device /dev/ipppnumber. Example: To attach the interface "ippp5" to /dev/ippp2, the following configuration should be used: "isdnctrl pppbind ippp5 2" Similarly, the command "pppunbind" will undo this attachment. 12.9 syncppp_dynip: I want to use dynamic IP address assignment. How must I configure the network device?At least you must have a route, which forwards a packet to the ippp network interface to trigger dialing. A default route to the ippp interface will work. Now you must choose a dummy IP address for your interface. If for some reason you can't set the default route to the ippp interface, you may take any address of the subnet from which you expect your dynamic IP number and set a 'network route' for this subnet to the ippp interface. To allow overriding of the dummy address you must call the ipppd with the 'ipcp-accept-local' option. You must know how the ipppd gets the addresses it has to configure. If you don't give any option, the ipppd tries to negotiate the local host address! With the option 'noipdefault' it requests an address from the remote machine. With 'useifip' it gets the addresses from the net interface. You also can set the addresses in the option line with the a.b.c.d:e.f.g.h option. Note: the IP address of the remote machine must be configured locally, or the remote machine must send it in an IPCP request. If your side doesn't know the IP address after negotiation, it will close the connection! You must allow overriding of addresses with the 'ipcp-accept-*' options, if you have set your own or the remote address explicitly. Try these options, e.g.: /sbin/ipppd :$REMOTE noipdefault /dev/ippp0 where REMOTE must be the address of the remote machine (the machine giving your address to you) 12.10 syncppp_msgetdns: How do I configure ipppd to obtain or provide the nameserver address at dial in?Use the configuration option 12.11 syncppp_ipx: How can I do IPX over ipppd?Give the option 12.12 syncppp_faster: How can I increase my PPP data transfer rates?You can establish more channels with MPPP (see the MPPP section). Another way is to use compression, see question syncppp_compression. 12.13 syncppp_compression: Which compressions can I use with ipppd?Several compressions can now be used with ipppd. However, if in doubt and it does not work: disable it.
12.14 syncppp_strategy: I can't get a connect. How can I find out where the problem is?The output of ipppd is very helpful... (see next question: syncppp_log)
12.15 syncppp_log: How can I get a log for ipppd?Normally when giving the option "debug" to ipppd, the debbuging output
may be logged in For debugging purposes you can redirect the PPP log into a separate file.
Just edit daemon.* /var/log/ppp-log then every information from PPP demon will be logged to /var/log/ppp-log. Emil Stephan
ste@esqhen.su.eunet.de also wrote:
Remove the comment sign in front of this line in /etc/syslog.conf: #*.=debug /tmp/debug After changing this file you can restart syslogd with "kill -1 pid of syslogd". The output in /tmp/debug can be used to optimize the handshaking of PPP options. 12.16 syncppp_nopppsupport: Starting ipppd I get the error message "this systems lacks ppp support" or "isdn driver is out of date. maybe ippp0 has no syncppp0 encapsulation".Check whether the device "ippp0" exists (i.e. with the program "ifconfig"). See question syncppp_netinterface for details on the naming conventions for net interfaces. The ipppd *needs* this device with exactly *that* name and *syncppp* encapsulation. If it doesn't exist then you have to define it: isdnctrl addif ippp0 isdnctrl encap ippp0 syncppp (see i4l documentation or question <ref id="syncppp_config" name="syncppp_config"> for more information...) Maybe you compiled ipppd with the source of another kernel that you are not using... 12.17 syncppp_nousabledevice: When I try to start ipppd it says "Can't find usable ippp device"This message occurs when the linklevel interface is told to dial out, but ipppd is not running, or not available. 12.18 syncppp_starterror: When I start ipppd, I only get error messages from the i4l driver.When ipppd is started, it calls functions that can trigger a network packet (e.g. gethostbyname()). Without ipppd (since at this time, ipppd it has not been fully started), this network access cannot be processed, You should try to put the needed hostnames in the local /etc/hosts or in some way define the name so that it can be resolved without having the access the ISDN/ippp interface. 12.19 syncppp_framesdelayed: I get the message
|
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0135 ]-- |