snazim se dle
http://www.glennklockwood.com/sysadmin-howtos/rpi-wifi-island.html udelat z maliny vstupni bod do netu wifi->rpi->eth a k tomu domaci sit a nejak mi nefunguje tenhle script
#!/bin/sh
IPT=/sbin/iptables
LOCAL_IFACE=eth0
INET_IFACE=wlan0
INET_ADDRESS=192.168.0.137
adresa odpovida aktualnimu wifi pripojeni
# Flush the tables
$IPT -F INPUT
$IPT -F OUTPUT
$IPT -F FORWARD
$IPT -t nat -P PREROUTING ACCEPT
$IPT -t nat -P POSTROUTING ACCEPT
$IPT -t nat -P OUTPUT ACCEPT
# Allow forwarding packets:
$IPT -A FORWARD -p ALL -i $LOCAL_IFACE -j ACCEPT
$IPT -A FORWARD -i $INET_IFACE -m state --state ESTABLISHED,RELATED -j ACCEPT
vyhodi mi to
iptables v1.6.0: Bad IP address "#!/bin/bash"
Try `iptables -h' or 'iptables --help' for more information.
podotykam ze jsem v tom ponekud lama