<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Kis KeMa wrote:
<blockquote TYPE=CITE>Hello,
<p>Which ports use the moha:a? Because I setting accept the 12203 standard
port in my ipchains rules but I can't connect to server. :( When I start
the moha dedicalt server I see that the port is 12203!
<p>my rules:
<br>-A input -p tcp -s any $unpriv_ports -d $myip 12203 -j ACCEPT
<br>-A output -p tcp ! -y -s $myip 12203 -d any $unpriv_ports -j ACCEPT
<p>Should I setting any other rules?
<p>bye
<p>KeMa
<br>[MT_wss]
<p>--
<br>Pro Patria!</blockquote>
<tt># this bit of BASH code worked for me in the past, i also have an IPTABLES</tt>
<br><tt>#&nbsp; equivalent if&nbsp; needed</tt>
<br><tt># IPADDR is simply your IP address</tt>
<br><tt># EXTERNAL_INTERFACE is either eth0 or eth1</tt><tt></tt>
<p><tt>ENABLE_MOH_FORWARDING="no"</tt>
<br><tt>MOH_SERVER_PORTS="12203 12300 12303"</tt>
<br><tt>for P in $MOH_SERVER_PORTS; do</tt>
<br><tt>&nbsp; if [ "$ENABLE_MOH_FORWARDING" = "no" ] ; then</tt>
<br><tt>&nbsp;&nbsp;&nbsp; ipchains -A input -i $EXTERNAL_INTERFACE -p
udp \</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -s $ANYWHERE $UNPRIVPORTS \</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -d $IPADDR $P</tt>
<br><tt>&nbsp;&nbsp;&nbsp; ipchains -A output -i $EXTERNAL_INTERFACE -p
udp \</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -s $IPADDR $P \</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -d $ANYWHERE $UNPRIVPORTS</tt>
<br><tt>&nbsp; else</tt>
<br><tt>&nbsp;&nbsp;&nbsp; ipmasqadm portfw -a -P udp -L $IPADDR $P -R
$WORKSTATIONIP $P</tt>
<br><tt>&nbsp; fi</tt>
<br><tt>done</tt>
<br>&nbsp;
<br>&nbsp;
<p>--
<br>name:Greg C. Miller
<br>title:Systems and Network Administrator/Sr. Analyst
<br>e-mail:gmiller@oei-tech.com
<br>url:<A HREF="http://www.oei-tech.com/">http://www.oei-tech.com/</A>
<br>voice:(540) 373-6025
<br>fax:(540) 899-5471
<br>&nbsp;</html>