We have a structure running Android Automotive OS and Embedded Linux on Hypervisor.
Wi-fi(wlan0) connection is on Android Automotive OS(Guest Domain), and we want to share to the Embedded Linux(Main Domain).
Our network topology for this process is as follows.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
We followed these steps below while making these connections:
Main Domain
Code:
1) ifconfig eth0 down
2) ip link add name br0 type bridge
3) ip link set br0 up
Create Guest Domain
Guest Domain
Code:
1) ifconfig eth0 down
2) ifconfig eth0 192.168.X.1/24 up
3) sysctl -w net.ipv4.ip_forward=1
4) iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
After completing the steps in the Guest Domain, it was returned to the Main Domain and the following commands were run.
Main Domain
Code:
1) ip address add 192.168.X.104/24 dev br0
2) ifconfig vif1.0 down
3) ifconfig vif1.0 192.168.X.105/24 up
4) ip route add default via 192.168.X.1 dev br0
"8.8.8.8" was pinged from Main Domain, but internet connection could not be established.
All interfaces in Main Domain can ping all interfaces(eth0, wlan0) in Guest Domain. Likewise, all interfaces in the Main Domain can be pinged from the Guest Domain (vif1.0, br0)
In the case of both domains are Embedded Linux, the same steps were followed and the Internet sharing process was made from the Guest Domain to the Main Domain and the Internet was successfully accessed from the Main Domain.
While the Guest Domain is Android Automotive OS, internet access cannot be provided from main domain.
I would be very grateful if you could guide me on this,
Regards.
Related
Normally, when you connect to a desktop via VNC you take control of the existing login session. I’ll show you how to configure an independent head - using your desktop as a terminal server. This is a one-time setup for the desktop system.
1. First, edit /etc/gdm/custom.conf and add ‘Enable=true’ to the ‘[xdmcp]’ section:
[xdmcp]
Enable=true
2. Edit /etc/services and add an entry for the archos101:
archos101 5901/tcp # VNC & GDM
3. Create an xinetd service by creating /etc/xinetd.d/archos101 with the following contents:
service archos101
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = -inetd -query 127.0.0.1 -geometry 980x600 -depth 24 -once -securitytypes=none :1
}
4. Open the firewall port for the service (use your subnet, obviously):
-A INPUT -s 123.45.67.0/24 -p tcp -m tcp --dport 5901 --syn -j ACCEPT
5. Restart your system.
6. You should now be able to connect via a VNC client from your Archos 101 to port 5901 on your desktop. If you have remote desktop functionality enabled in the preferences, that should still function on port 5900 (the default).
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Is there anyone here who was able to use OpenVPN on our tablet?
oskie09 said:
Is there anyone here who was able to use OpenVPN on our tablet?
Click to expand...
Click to collapse
Not "OpenVPN" but I have set up the SSHTunnel (app found in the market) to work with my Linksys WRT54g running DD-WRT firmware (v24sp3). I think it does the same thing... I can use a public network, "tunnel" into my router and in theory use my ISP that my router is hooked up to. When I check with "whatsmyip.org" it gives me my ip of my ISP at home from where ever I am...
Can you give me more details about the setup and configuration? Thanks!
I wish I can, but I did it through a lot of trail and error, I am not 100 percent sure of the exact steps I did to get it connected. The principle is to use the sshtunnel app to tunnel into a secure server. My router which has been modded with a different firmware acts as that server. If you don't have a router that can do that, then you can set up your pc as a ssh server. There are some free/open applications out there, but I have not played with them... also I used a dynamic dns to keep my router ip up to date. apparently the isp's change the ip address every so often.
I did a lot of googling and trail and error. You may have a different setup then I do... the sshtunnel is pretty simple. Its the setup of the server that may be difficult...
I believe this where I should set it up right? or maybe not.hehe
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Idk... looks like your on the "port forwarding" page... Not sure if that is the same thing or it might be but not "secure"???
This is where I got my info on the router. Remember my router is a Linksys WRT54g with the modified firmware (dd-wrtv24sp3) loaded into it. I am not sure if it is available for your router???
www.dd-wrt.com/wiki/index.php/Easy_SSH_tunnels
And the app from the market was just filing in the blanks with the info also provided by the wiki page.
Hello all,
I have a problem with VPN.
Last year i was running a stock version of android 2.2 on my Desire HD and it was rooted. I installed OpenVPN following this guide and everything works ok:
http://forum.xda-developers.com/showthread.php?t=848939.
Since a few months im using custom roms but i can't get OpenVPN to work in the custom roms. If i restore the nandroid to my original stock firmware it works again.
Im using the same config files on all the different roms i used. Here is an overview of the VPN that works:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
As you can see beneath the VPN says it's connected to my home IP.
Everything works. My phone is using my home IP adress.
Different app:
Terminal overview:
I can browse the internet with my home IP and i can access everything that's running at home.
However like i said, i can't get it to work with a custom rom. For this example i used ARHD 7.0.4 and the same config files. OpenVPN says its connected to my home ip adress just like picture 4.
Some apps give me my home IP adress but other apps and the website whatsmyipadress show the ISP provider ip. I can't acces my network.
The following app gives me the IP of my ISP provider:
The MYIP app shows me my home IP adress:
Copymyip also shows my home IP:
Terminal overview:
I don't browse the internet with my home IP and i cant access my network.
Does anyone know what's going wrong?
Thanks in advance.
Best regards,
Henk
Kick
Sent from my HTC Desire HD using Tapatalk 2
Hi,
I'm having some trouble getting the native Android SIP client to run with the builtin SIP server of my FRITZ!Box router. The native client works great with my Sipgate-Account, however it doesn't want to stay connected to my router. I've made a Wireshark trace which looks like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sipgate account: REGISTER -> 401 -> REGISTER with user/pw -> 200 -> OPTIONS -> 200
FRITZ!Box account: REGISTER -> 401 -> REGISTER with user/pw -> 200 -> OPTIONS -> 401
The FRITZ!Box account works with other soft phones like PhonerLite.
startaq said:
I'm having some trouble getting the native Android SIP client to run with the builtin SIP server of my FRITZ!Box router. The native client works great with my Sipgate-Account, however it doesn't want to stay connected to my router.
Click to expand...
Click to collapse
I know this is an old thread, but did you manage to get things to work in the meantime?
I've just started trying the SIP functionality of my FRITZ!Box router with CM 12.1, so native Android SIP stack. I can get registration to work and phones to ring, but the moment I pick up (incoming through FritzBox) or the callee picks up (outgoing through FritzBox), the connection is broken. Perhaps your experience can halp me diagnose my issue.
hi folks, any idea what i do wrong? Can t set root passwd
[email protected]:~$ sudo passwd root
passwd: Authentication token manipulation error
passwd: password unchanged
[email protected]:~$
sudo passwd root
来自我的 GT-I9508 上的 Tapatalk
thx for your great answer, it s exactly what i did...
[email protected]:~$ sudo passwd root
[sudo] password for phablet:
passwd: Authentication token manipulation error
passwd: password unchanged
[email protected]:~$
can't set root password!
nocomp said:
hi folks, any idea what i do wrong? Can t set root passwd
[email protected]:~$ sudo passwd root
passwd: Authentication token manipulation error
passwd: password unchanged
[email protected]:~$
Click to expand...
Click to collapse
It seems it is a known bug "feature" in Ubuntu-Touch!
Also
Code:
sudo /bin/bash
followed by an
Code:
passwd
gives an token error !
So it is on you, to trust an OS, with the only user "phablet" (worldwide), and maybe only using a PIN instead of an password/phrase ...
sudo pam-auth-update
disable: Extrausers authentication & GNOME Keyring Daemon - Login keyring management
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
sudo passwd USERNAME
sudo pam-auth-update
enable: Extrausers authentication & GNOME Keyring Daemon - Login keyring management
For me is worked. (Remote ssh access to phone)