[Trac #1272] Unable to run mpp.py
Zarro Boogs per Child
bugtracker at laptop.org
Wed Apr 4 19:54:13 EDT 2007
#1272: Unable to run mpp.py
--------------------------------+-------------------------------------------
Reporter: swagle at marvell.com | Owner: jcardona
Type: defect | Status: new
Priority: high | Milestone: Untriaged
Component: distro | Keywords:
--------------------------------+-------------------------------------------
There is a problem executing mpp.py.
There is a error code mentioned in the masquerade.sh (shown below) and it
appears inspite of commenting the lines(the same code asks to comment the
lines to prevent displaying the error).As a result of this we are unable
to run the MP successfully.
{{{
#!/bin/sh
# Simplified version from masquerade-howto, original in
# http://tldp.org/HOWTO/IP-Masquerade-HOWTO/firewall-examples.html#RC
.FIREWALL-IPTABLES
IPTABLES=/sbin/iptables
DEPMOD=/sbin/depmod
MODPROBE=/sbin/modprobe
EXTIF="eth0"
INTIF="msh0"
case "$1" in
start)
echo "1" > /proc/sys/net/ipv4/ip_forward
echo "1" > /proc/sys/net/ipv4/ip_dynaddr
$MODPROBE ip_tables
$MODPROBE ip_conntrack
$MODPROBE ip_conntrack_ftp
$MODPROBE ip_conntrack_irc
$MODPROBE iptable_nat
$MODPROBE ip_nat_ftp
$MODPROBE ip_nat_irc
$IPTABLES -P INPUT ACCEPT
$IPTABLES -F INPUT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -F OUTPUT
$IPTABLES -P FORWARD DROP
$IPTABLES -F FORWARD
$IPTABLES -t nat -F
# FWD: Allow all connections OUT and only existing and related ones IN
# This line results in iptables: Unknown error 4294967295
#$IPTABLES -A FORWARD -i $EXTIF -o $INTIF -m state --state
ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A FORWARD -i $EXTIF -o $INTIF -j ACCEPT
$IPTABLES -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT
$IPTABLES -A FORWARD -j LOG
# Enabling SNAT (MASQUERADE) functionality on $EXTIF
$IPTABLES -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE
;;
stop)
$IPTABLES -F INPUT
$IPTABLES -F OUTPUT
$IPTABLES -P FORWARD DROP
$IPTABLES -F FORWARD
$IPTABLES -F -t nat
# Delete all User-specified chains
$IPTABLES -X
#
# Reset all IPTABLES counters
$IPTABLES -Z
;;
restart)
$0 stop
$0 start
;;
status)
$IPTABLES -L
;;
*)
echo "Usage: firewall-iptables {start|stop|status}"
exit 1
esac
exit 0
}}}
--
Ticket URL: <http://dev.laptop.org/ticket/1272>
One Laptop Per Child <http://laptop.org/>
More information about the Bugs
mailing list