Jump to content

Problem with usb mobile network sharing


Guest wuka

Recommended Posts

Hi,

I already posted my Problem[1] but I think it's better to start a new topic on this...

Okay, with the stock ROM I was able to use my Hero as a router with my laptop / pc but since I flashed MCR v2.5.1 I'am no longer able to do so.

I'm still able to get an IP over DHCP from my Hero (192.168.100.100) and I can ping my Hero (192.168.100.254). But when I try to connect to an external host I just can resolve the IP, nothing else...

PING google.com (74.125.45.100) 56(84) bytes of data.

I think the problem has something to do with the iptables rules, but I don't know how they looked on the stock ROM and I don't know where I can find the script which starts when I turn on mobile network sharing.

Here is an output on my hero:

--

(This one is correct)

# cat /proc/sys/net/ipv4/ip_forward

1

# iptables -L -v -n

Chain INPUT (policy ACCEPT 113 packets, 60130 bytes)

pkts bytes target prot opt in out source destination

Chain FORWARD (policy ACCEPT 180 packets, 15087 bytes)

pkts bytes target prot opt in out source destination

0 0 TCPMSS TCP -- * * 0.0.0.0/0 0.0.0.0/0 tcp flags:0x08/0x02 TCPMSS clamp to PMTU

Chain OUTPUT (policy ACCEPT 269 packets, 23282 bytes)

pkts bytes target prot opt in out source destination

--

I think the iptables rules look a bit... empty. I tried to use my own but my Hero doesn't accept them. :/

Link to comment
Share on other sites

Okay here some update:

I'm now able to change the iptables but still no effect it seems that my Hero doesn't really route the traffic.

I also noticed that when I'm not doing network sharing I'am able to ping remote sites (using ConnectBot to access the shell) but when I'am using network sharing it doesn't work.

Default route is still on rmnet0.

Link to comment
Share on other sites

I'm now able to change the iptables but still no effect it seems that my Hero doesn't really route the traffic.

I just had a look at my Hero while tethering, it looks like it doesn't use iptables:

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination
TCPMSS tcp -- anywhere anywhere tcp flags:SYN,RST/SYN TCPMSS clamp to PMTU

Chain OUTPUT (policy ACCEPT)
target prot opt source destination[/codebox]

Good luck

Niki

Edited by Loxley
Link to comment
Share on other sites

I just had a look at my Hero while tethering, it looks like it doesn't use iptables:

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination
TCPMSS tcp -- anywhere anywhere tcp flags:SYN,RST/SYN TCPMSS clamp to PMTU

Chain OUTPUT (policy ACCEPT)
target prot opt source destination[/codebox]

Good luck

Niki

Er can we confirm that we are talking about Tethering via USB as I have been unable to achieve a tether on my rooted Hero using Bluetooth or Wifi.

Link to comment
Share on other sites

Er can we confirm that we are talking about Tethering via USB as I have been unable to achieve a tether on my rooted Hero using Bluetooth or Wifi.

Yes, we can. No political pun intended.

The connection was: Netbook->USB->Hero->WiFi->Router.

Link to comment
Share on other sites

Notebook <-> USB <-> Hero <-> GPRS/EDGE/3G

No W-LAN or BT.

It worked fine before without any special software installed, just the rndis module on my notebook. But it doesn't work with MCR . :/

Edited by wuka
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.