Originally Posted by zeropoint46:
starting and stoping is quite easy, you litterally type stop PmConnectionManager and start PmConnectionManager at the command line. As far as adding the ip table rule you edit the file in /etc/event.d/optware-dropbear and you will see a few iptable lines near the end of the file. just add another line with the rule that I posted here. Here is what mine looks like:
pre-start script
# Add firewall rule to allow SSH access over WiFi on port 222
# Remove the "-i eth0" on both of the following lines to enable SSH access
# over the cellular data network (EVDO, etc).
/usr/sbin/iptables -D INPUT -p tcp --dport 222 -j ACCEPT || /bin/true
/usr/sbin/iptables -I INPUT -p tcp --dport 222 -j ACCEPT
/usr/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
end script
The phrase, "a prince among men" comes to mind. Thank you kindly.