SSH into Freerunner
Yoann B.
executionner at free.fr
Sat Jul 19 11:34:01 CEST 2008
Ok, I finally made it work !!!!!
So, for those who are under 192.168.0.* network, and ubuntu, here's what I
did :
** disconnect from network
On freerunner /etc/network/interfaces I replaced by
iface usb0 inet static
address 192.168.2.202
netmask 255.255.255.0
network 192.168.2.0
gateway 192.168.2.200
up echo nameserver 192.168.2.200 >/etc/resolv.conf
In /etc/resolv.conf, replace "nameserver 192.168.0.200" by "nameserver
192.168.2.202"
* not very useful, but give it a try
Still in freerunner, but on the device : "/etc/init.d/networking restart"
Then on my computer's /etc/network/interfaces :
auto usb0
iface usb0 inet static
address 192.168.2.200
netmask 255.255.255.0
network 192.168.2.0
up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.2.0/24 &
up echo 1 > /proc/sys/net/ipv4/ip_forward &
up iptables -P FORWARD ACCEPT &
down iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.2.0/24 &
On computer's, "/etc/init.d/networking/restart".
Then, in Firestarter (System -> Administration -> Firestarter), this
configuration :
- in politic, entry trafic, autorize connections from 192.168.2.202
- autorize service SSH port 22 for 192.168.2.202
And the most important, in Preferences -> Firewall -> Network configuration
:
Set local network device to "Unknown device (usb0)", and tick "Authorize
internet connection sharing"
Then "Accept", on my computer it display an error message, but no matter.
In a console, ssh root at 192.168.2.202 ... and it works !!!
Thanks for your help all !
arne anka wrote:
>
>> And when I try to ping (with network enabled) :
>> ~$ ping 192.168.2.202
>> PING 192.168.2.202 (192.168.2.202) 56(84) bytes of data.
>> ping: sendmsg: Operation not permitted
>
> we got that earlier today on the list and it turned out to be the
> firewall's fault -- probably your firewall ist shut down when you shutdown
> your network.
> have a look at the firewall's configuration if so and add a rule for the
> openmoko.
>
> _______________________________________________
> support mailing list
> support at lists.openmoko.org
> https://lists.openmoko.org/mailman/listinfo/support
>
>
--
View this message in context: http://n2.nabble.com/SSH-into-Freerunner-tp532402p551018.html
Sent from the Openmoko Support mailing list archive at Nabble.com.
More information about the support
mailing list