Annotation of embedaddon/mpd/doc/mpd63.html, revision 1.1.1.2

1.1       misho       1: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
                      2: <HTML>
                      3: <HEAD>
                      4: <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
                      5: <TITLE>Troubleshooting</TITLE>
                      6: </HEAD>
                      7: <BODY text="#000000" bgcolor="#ffffff">
                      8: 
1.1.1.2 ! misho       9: <A HREF="mpd.html"><EM>Mpd 5.7 User Manual</EM></A>
1.1       misho      10:  <b>:</b> <A HREF="mpd62.html"><EM>Troubleshooting</EM></A>
                     11:  <b>:</b> <EM>Troubleshooting</EM><BR>
                     12: <b>Previous:</b> <A HREF="mpd62.html"><EM>Troubleshooting</EM></A><BR>
                     13: <b>Next:</b> <A HREF="mpd64.html"><EM>Internals</EM></A>
                     14: 
                     15: 
                     16: <HR NOSHADE>
                     17:   <H2><A NAME="63"></A>7.1. Troubleshooting<A NAME="trouble"></A></H2>
                     18: <p>Some tips for troubleshooting.</p>
                     19: 
                     20: <p>For further help, ask to the <code>freebsd-net@freebsd.org</code>
                     21: mailing list or sourceforge.net mpd project forum.</p>
                     22: <p>
                     23: <dl>
                     24: 
                     25: <dt><b><b>It does not works and I don't understand why.</b></b><dd><p>Mpd has extensive logging system supporting syslog. To direct logs
                     26: into a file add lines
                     27: <pre>
                     28: !mpd
                     29: *.*                                             /var/log/mpd.log
                     30: </pre>
                     31: 
                     32: into your /etc/syslog.conf file, create /var/log/mpd.log file and send 
                     33: SIGHUP to syslogd to reread config.</p>
                     34: <p>To enable all possible logging you can use 'log +all' command.</p>
                     35: 
                     36: <dt><b><b>Packets won't flow.</b></b><dd><p>Make sure you have set <code><b>gateway_enable="YES"</b></code>
                     37: in <code>/etc/rc.conf</code>, otherwise your FreeBSD box will not
                     38: route packets.
                     39: Alternately, invoke <code>sysctl -w net.inet.ip.forwarding=1</code>
                     40: for immediate effect.</p>
                     41: <p>Also, check your firewall settings. Mpd will create new interfaces
                     42: which may need to be incorporated into your firewall rules.
                     43: If you're doing PPTP, you need to allow TCP port 1723 and IP protocol
                     44: 47 (GRE).</p>
                     45: 
                     46: <dt><b><b>It doesn't work, and there are strange netgraph-related errors in the log.</b></b><dd><p>Make sure you have all the required netgraph KLD's loaded.
                     47: You can check them by doing <code> kldstat -v | grep ng_ </code>.</p>
                     48: <p>Usually these are loaded on demand. If not, you can load them
                     49: manually using <code>kldload(8)</code>.</p>
                     50: <p>The following node types are or may be needed:</p>
                     51: <p>
                     52: <ul>
                     53: <li><code>ng_async</code></li>
                     54: <li><code>ng_bpf</code></li>
                     55: <li><code>ng_car</code></li>
                     56: <li><code>ng_deflate</code></li>
                     57: <li><code>ng_ether</code></li>
                     58: <li><code>ng_iface</code></li>
                     59: <li><code>ng_ksocket</code></li>
                     60: <li><code>ng_l2tp</code></li>
                     61: <li><code>ng_mppc</code></li>
                     62: <li><code>ng_ppp</code></li>
                     63: <li><code>ng_pppoe</code></li>
                     64: <li><code>ng_pptpgre</code></li>
                     65: <li><code>ng_nat</code></li>
                     66: <li><code>ng_netflow</code></li>
                     67: <li><code>ng_pred1</code></li>
                     68: <li><code>ng_socket</code></li>
                     69: <li><code>ng_tcpmss</code></li>
                     70: <li><code>ng_tee</code></li>
                     71: <li><code>ng_tty</code></li>
                     72: <li><code>ng_vjc</code></li>
                     73: </ul>
                     74: </p>
                     75: 
                     76: <dt><b><b>My configuration doesn't seem to be working as expected.</b></b><dd><p>Make sure your <code>mpd.conf</code> file formatted properly.
                     77: Labels must be left-justified, while other lines must not.</p>
                     78: 
                     79: <dt><b><b>I'm getting no valid response from the RADIUS server.</b></b><dd><p>Double-check the shared secret in the RADIUS servers config and the
                     80: one specified in <code>mpd.conf</code> or <code>radius.conf</code>.
                     81: Check the ports of the RADIUS server: they should be 1812 (authentication)
                     82: and 1813 (accounting), wich are also the default ports of mpd. In
                     83: the past unofficial port numbers (1645 and 1646) were used for RADIUS,
                     84: but these are deprecated.</p>
                     85: 
                     86: <dt><b><b>I'm getting ``Operation not permitted'' errors trying to run mpd.</b></b><dd><p>This is often caused by a combination of (a) using netgraph in KLD module
                     87: form instead of statically compiling the various modules into the kernel
                     88: via kernel <code>config(8)</code> options, and (b) increasing your 
                     89: kernel security level (see the <code>init(8)</code> man page), which prevents
                     90: KLD modules from being loaded. Change one of these things to fix the problem.</p>
                     91: 
                     92: <dt><b><b>I've configured a link for dial-in, and sometimes after disconnecting
                     93: mpd gets into some kind of infinite loop.</b></b><dd><p>This is because mpd is trying to ``redial,'' which of course is not
                     94: appropriate for dial-in links. Use <code>set link max-redial -1</code> and 
                     95: <code>set bundle yes noretry</code> to disable the redial function.</p>
                     96: 
                     97: <dt><b><b>I'm using mpd as PPTP server for Windows XP clients, when accessing bigger
                     98: websites, or listing larger ftp directories, then the connection
                     99: seems to hang.</b></b><dd><p>Windows XP insists on a very low MTU (usualy 1396 Bytes), this needs
                    100: fragmentation, if bigger packets should be transmited over the link.
                    101: Fragmentation is negotiated at ICMP level, if there is a bad router
                    102: somewhere in the network, who drops such packets, then the connection
                    103: seems to hang.
                    104: The first thing what you can try is reducing mpd's MTU value, by
                    105: setting: <code>set link mtu 1300</code> and <code>set bundle disable multilink</code>,
                    106: this should help in most cases.
                    107: For TCP connections it's possible enabling the TCP-MSS-Fix:
1.1.1.2 ! misho     108: <code>set iface enable tcpmssfix</code>.</p>
1.1       misho     109: 
                    110: <dt><b><b>Problems with MPPE stateless when connecting to Cisco devices.</b></b><dd><p>Upgrade the IOS of your device, see:
                    111: <code>CSCdu30944  MPPE rejects stateless        Fixed in 12.3(11.4)</code></p>
                    112: 
                    113: </dl>
                    114: </p>
                    115: 
                    116:  <HR NOSHADE>
1.1.1.2 ! misho     117: <A HREF="mpd.html"><EM>Mpd 5.7 User Manual</EM></A>
1.1       misho     118:  <b>:</b> <A HREF="mpd62.html"><EM>Troubleshooting</EM></A>
                    119:  <b>:</b> <EM>Troubleshooting</EM><BR>
                    120: <b>Previous:</b> <A HREF="mpd62.html"><EM>Troubleshooting</EM></A><BR>
                    121: <b>Next:</b> <A HREF="mpd64.html"><EM>Internals</EM></A>
                    122: 
                    123: 
                    124: 
                    125: </BODY>
                    126: </HTML>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>