![]() |
2011-03-19
, 15:34
|
Posts: 1,425 |
Thanked: 983 times |
Joined on May 2010
@ Hong Kong
|
#2
|
Hey everyone,
I am wondering about the route command on n900 and if I can make it direct Joikuspot traffic through tap0 created by openvpn. That is, I want to make the n900 act as an openvpn wifi router. Any ideas how it can be done? I can't say I use the route command much but there should be an easy way to do it, right?
the way things are now, I find that running openvpn breaks the joikuspot wifi internet (wifi continues to run though even with no internet access). Joikuspot runs fine onece openvpn on n900 is shut down. Any fix would be appreciated. In all cases, internet access is preserved on the phone browser itself but not the joikuspot.
#!/bin/sh # Original script by Jebba, modified by 9000 @ talk.maemo.org # Run this script to create WiFi hotspot over tap0 # Activate your tap0 (openvpn) connection first set -x start wlancond # Load modules modprobe crc7 modprobe mac80211 modprobe wl12xx modprobe ipt_MASQUERADE # flush old rules iptables -F iptables -t nat -F iptables -t nat -A POSTROUTING -o tap0 -j MASQUERADE # forward IPs echo 1 > /proc/sys/net/ipv4/ip_forward # Setup DNS and DHCP dnsmasq -I lo -z -a 192.168.1.1 -F 192.168.1.100,192.168.1.127 ifconfig wlan0 down iwconfig wlan0 mode ad-hoc ifconfig wlan0 up iwconfig wlan0 essid openvpn iwconfig wlan0 key s:YOURPASSWORD iwconfig wlan0 channel 10 ifconfig wlan0 192.168.1.1 netmask 255.255.255.0 up run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:'WiFi HotSpot Activated'
I am wondering about the route command on n900 and if I can make it direct Joikuspot traffic through tap0 created by openvpn. That is, I want to make the n900 act as an openvpn wifi router. Any ideas how it can be done? I can't say I use the route command much but there should be an easy way to do it, right?
the way things are now, I find that running openvpn breaks the joikuspot wifi internet (wifi continues to run though even with no internet access). Joikuspot runs fine onece openvpn on n900 is shut down. Any fix would be appreciated. In all cases, internet access is preserved on the phone browser itself but not the joikuspot.