iptables - XPERIA X8 Q&A, Help & Troubleshooting

Hi guys!
I'm trying use Reverse Tethering to surf on my phone, using ADSL of my PC.
But the app USB Tunnel report that i need a Iptables.
"Iptables v1.4.10: can't initialize iptables nat... Table doesn't exist"

bobgeneric said:
Hi guys!
I'm trying use Reverse Tethering to surf on my phone, using ADSL of my PC.
But the app USB Tunnel report that i need a Iptables.
"Iptables v1.4.10: can't initialize iptables nat... Table doesn't exist"
Click to expand...
Click to collapse
Looking at your signature ...
Upgrade to GDX v023b + Stock Kernel Modules v002
I integrated ax8netfilter in there and made it auto-load on ROM boot.

Related

attached is a functioning tun.ko for droid x

Because Motorola hasn't provided the .config file for the Droid X yet, I used 'make mapphone_defconfig' and then enabled config_tun in the resulting .config file. That .config file was used to generate tun.ko - it's currently functioning and working on my droid X phone. Since it's not the .config file used by Motorola there may be some oddities, unexpected problems or your house may explode if you use it. I don't take any responsibility for anything that happens if you use this - use it at your own risk.
It hasn't bricked my phone and it's been working without a problem, but your mileage may vary.
Attached is the .config file that was used as well as the tun.ko file
Enjoy
Noob Warning:
What does this do for us ?
pman219 said:
What does this do for us ?
Click to expand...
Click to collapse
This lets you run OpenVPN or http://code.google.com/p/get-a-robot-vpnc/ (allows you to connect to cisco, nortel or freeswan IPSEC servers
Would I need the config file or is that just for compiling other kernel modules for the DX?
The config file would really only be used to compile other modules. All you need is the tun.ko file
I placed this in /dev/net/tun/tun.ko
then I ran chmod 777 /dev/net/tun/tun.ko
then I ran insmod /dev/net/tun/tun.ko
I then tried the Gui app (get-a-robot-vpnc) and it fails immediately when trying to connect - am I missing something?
I'm new to android.
kris7778 said:
I placed this in /dev/net/tun/tun.ko
then I ran chmod 777 /dev/net/tun/tun.ko
then I ran insmod /dev/net/tun/tun.ko
I then tried the Gui app (get-a-robot-vpnc) and it fails immediately when trying to connect - am I missing something?
I'm new to android.
Click to expand...
Click to collapse
Hi,
You should place tun.ko in /sdcard/ or /system/lib/modules (if you have it mounted /system read,write)... I use the app "openvpn settings" - in that program when you go into the settings and choose "advanced" you can click the checkbox next to "load tun kernel module", then in "TUN module settings" set "load module using" to "insmod" and type in the proper path to tun.ko in the "path to tun module" area.
You may need to, as root (su) run:
mkdir /dev/net
busybox mknod /dev/net/tun char 10 100
ln -s /dev/net/tun /dev/tun
Best of luck
Do I need to set the path to the openvpn binary also? (Not sure where this gets installed)
And... what is required in the config file.
This is all I use on linux:
IPSec gateway X.X.X.X
IPSec ID mygroupid
IPSec secret mysecret
thanks!
kris7778 said:
Do I need to set the path to the openvpn binary also? (Not sure where this gets installed)
And... what is required in the config file.
This is all I use on linux:
IPSec gateway X.X.X.X
IPSec ID mygroupid
IPSec secret mysecret
thanks!
Click to expand...
Click to collapse
Hi Chris,
I think that would be something that the get-a-robot-vpnc folks will have to help you out with.
I got your tun.ko working with the commandline vpnc. It appears that get-a-robot-vpnc is just not quite calling vpnc how i need it to.
Thanks for your help.
Sent from my DROIDX using XDA App
You can pull .config from /proc/config.gz
mrozzeh said:
You can pull .config from /proc/config.gz
Click to expand...
Click to collapse
While that file apparently exists on other phones, it does not on the droid x - atleast not the last time that i checked
anyone know how you would recompile this for the .32 kernel
Invalid module format
I get an invalid module format error while trying to load this module. I am running Froyo if that makes any difference. THX
Can someone post instructions.....
HI,
Can someone post some instruction how to get the vpn connections working in Droid X? Please...
I can help with a donation.... $$
SOGJC said:
HI,
Can someone post some instruction how to get the vpn connections working in Droid X? Please...
I can help with a donation.... $$
Click to expand...
Click to collapse
I would love to get some instructions as well. I have a corp 5520 with group authentication that would be very nice to be able to connect to. Anyone successfully connect with the DroidX?
Anyone?
Still cannot get this to work on my DroidX - currently on 2.3.340 stock.
mab2,
As you were able to get this file, is there any way you are able to dump a file so I can use to get EVDO internet settings stick on QPST?
VPN Connections
Are you rooted?
I will post instructions if needed, I connect to a Cisco ASA and use VPN Connections - works like a charm.
Reply
rhyzar said:
Anyone?
Still cannot get this to work on my DroidX - currently on 2.3.340 stock.
Click to expand...
Click to collapse
Are you rooted?
I will post instructions if needed, I connect to a Cisco ASA and use VPN Connections - works like a charm.

[Q] Bluetooth PAN enabling (bnep.ko module)

What about subj on FROYO-based FW's?
I tried to enable it on JM5 firmware (Eclair), but no success
We need to compile bnep.ko module for kernel version 2.6.32 and a bluetooth pan daemon - pand.
So, in case of Eclair, i tried to use bnep.ko, compiled for kernel 2.6.29 and pand version 4.47 (see attachments for both).
And what i've done (step-by-step):
1) Inserting our bnep.ko:
Code:
insmod /lib/modules/bnep.ko
2) Copying pand to /system/bin/
3) Trying to start listening for a incoming bluetooth PAN connection by typing:
Code:
pand -n --listen --role NAP
4) .. and seems we have a problem
Code:
pand[7013]: Bluetooth PAN daemon version 4.47
pand[7013]: Failed to connect to the local SDP server. Connection refused(111)
pand[7013]: Bind failed. Address already in use(98)
... and i have no idea whats going wrong.
So, it will be great if someone could compile bnep.ko for FROYO-based firmwares, may be it will be more lucky
Could someone please compile and post the bnep.ko module and pand for the Galaxy Tab wifi P1010. It seems they left it out of a device that desparately needs it, considering it has no 3g.
I actually have no way of tethering this tab with my phone. It does not pick up adhoc wifi (wpa supplicant hack from p1000 does not work on this device), and itbdoes not support bluetooth pan, which is ultimately my preferred tethering solution because of better battery performance.
I tried the above files but they dont work on the p1010. I even tried copying pand from other devices, but so far none of them execute on this device.
Would really appreciate it if someone could compile the above for the p1010. The kernel version is 2.6.32.9 [email protected] #1. Thanks.
A bit late but someone may need it http://www.patthoyts.tk/blog/android-bluetooth-tethering.html
@sinancetinkaya: Thanks, d00d, came in *very* handy!

Ethernet MCS7830

I have USB Ethernet on MCS7830
asix.com.tw
FrootAttach/driver/MCS783x_FreeBSD_driver_v1.0.0.1.zip
Can somebody build module?
post in android development and hacking thread.
Ta-da!
I made it. But i have no root.
I have this USB network card and drivers for it (in the end of page). Please help me to add it to my Note.
It's impossible without root.
If you root your phone just load module with insmod.
FedX IV said:
It's impossible without root.
If you root your phone just load module with insmod.
Click to expand...
Click to collapse
I have root. Can you please explain it in detail?
People should learn to click thanks than just keeping to ask questions
Sent from my GT-N7000 using Tapatalk
Hi guys
This is just great news. I was thinking about buying Galaxy Note, but could not decide because it was not clear if there will ever be usb 2 lan drivers.
And now you're writing about it in this thread!!!
Please, Guys, if anyhow possible make it work! Please!
If we get a working version, I will donate for sure. And I'm also sure I'm not the only one interested!!!
Many thanks for your efforts and togetherness!
Sindu
Download and unzip module, then in terminal type
insmod PATH/mcs7830.ko
If it load successful, type something like
ifconfig eth0 inet 192.168.10.15 netmask 255.255.255.0
ifconfig eth0 up
I'm interested in whether this actually works in practice?
Can anyone rebuild this USB ethernet driver pack for Note?
http://forum.xda-developers.com/showthread.php?t=1274656
cuz now i've get:
# ismod: init_module '/system/lib/modules/usb_ethernet/pegasus.ko' failed (Exec format error)
when try to load those built for Tegra drivers
I have a startech.com usb2106s (MOSCHIP usb-ethernet driver 1-3.1.1:1.0: eth0: register 'MOSCHIP usb-ethernet driver' at usb-0000:00:0b.1-3.1.1, MOSCHIP 7830/7832/7730 usb-NET adapter)
And I get the same error trying to load the driver in CM9 ICS.
what exactly it does?

[Q] USB Tethering Ubuntu

Hi,
Has anyone succeeded in getting USB tethering to work with Ubuntu? I have :
Ubuntu 11.10
Samsung Galaxy S 2.3.5, kernel speedmod k16-11
USB tethering works a treat under windows, once I install the samsung drivers, but I can't get usb0 to appear when I type "ifconfig". "lsusb" does however list the samsung phone.
Any ideas, other than using easy tether ?
Thanks
Hi mmlbbntr,
I have got Ubuntu 11.10 on MacBookPro. I had problems to connect to School WLAN, so I do USB Tethering and it was successful.
But I use Teamhacksung ICS on my SGS ;-)
// Don't forget to Thanks
Have You tried
ifconfig -a
?
It should list Your usb0 ethernet.
If it is right there You should try
ifconfig usb0 up
and
dhcpcd usb0
If there is no usb0, maybe
ifconfig usb0 plumb
will help.
There is a bug with gingerbread where USB tethering is broken on linux. It worked well on Froyo and it also works well on CM9
there is a workarround however, but it is much less clean
http://technomagus.wordpress.com/mobile/tethering/samsung-galaxy-s-i9000-as-3g-modem/
Yeah ifconfig doesn't list any usb connection. I'll try "ifconfig -a" though, not sure what the difference is. If that fails I'll try "ifconfig usb0 plumb", no idea what that does either, but worth a shot.
Thanks for the tips, I'll keep you posted tonight.
robert-km said:
Have You tried
ifconfig -a
?
It should list Your usb0 ethernet.
If it is right there You should try
ifconfig usb0 up
and
dhcpcd usb0
If there is no usb0, maybe
ifconfig usb0 plumb
will help.
Click to expand...
Click to collapse
Oh wow, I hadn't seen your post. Thanks for the info. Guess all I can do is wait for a stable release of CM9 and upgrade...
zorxd said:
There is a bug with gingerbread where USB tethering is broken on linux. It worked well on Froyo and it also works well on CM9
there is a workarround however, but it is much less clean
http://technomagus.wordpress.com/mobile/tethering/samsung-galaxy-s-i9000-as-3g-modem/
Click to expand...
Click to collapse
I'm using Arch with ICS on galaxy S, so I didn't know about this bug.
ifconfig -a lists every lan devices, not only UP state.
plumb as far as i remember works only on solaris, so You sould not need this command, sorry for making mess.
zorxd said:
There is a bug with gingerbread where USB tethering is broken on linux. It worked well on Froyo and it also works well on CM9
there is a workarround however, but it is much less clean
http://technomagus.wordpress.com/mobile/tethering/samsung-galaxy-s-i9000-as-3g-modem/
Click to expand...
Click to collapse
No mention anywhere of 2.3.6. I wonder if USB tethering bug is fixed. Has anyone tried?
I'd rather not install ICS until a stable release is out TBH...

[Q] SSH Tunneling

Hello
Currently running stock rom .434
Locked Bootloader with root.
I have been trying to ssh tunnel to my server at home using sshTunnel by Max lv
I have checked if IPTables has been installed, I su'd and Iptables -F then Iptables -P OUTPUT DROP which confirmed ip tables is working with the expected results.
For some reason when I look up my ip address via whatsmyip.net it shows the same IP before enabling ssh tunnel, does anyone have this issue?
I have never got ssh tunneling to work on my previous devices with custom kernels x10i and neo
Cheers guys

Categories

Resources