• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: GuruPlug s router problem  (Read 2400 times)
seyacat
Newbie
*

Karma: 0
Posts: 3


View Profile
« on: April 14, 2011, 09:29:14 PM »

imaving problem to conect to internet using gruplug like router
i using dnsmasq and it works fine like dns and dhcp,

i can make ping, nmap to an outside server, but i cant navigate, its loke MASQUERADE not working good at all. In IRC says it can be problem of sysconfig, but how can i know

some configurations details
iptables, ifconfig, ip r

seyacat@sheevaplug-debian:~$ sudo ip r
186.66.79.0/24 dev eth1  proto kernel  scope link  src 186.66.79.169
192.168.1.0/24 dev uap0  proto kernel  scope link  src 192.168.1.1
192.168.11.0/24 dev eth0  proto kernel  scope link  src 192.168.11.79
default via 186.66.79.1 dev eth1

seyacat@sheevaplug-debian:~$ sudo ifconfig
eth0      Link encap:Ethernet  HWaddr f0:ad:4e:00:44:23 
          inet addr:192.168.11.79  Bcast:192.168.11.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:11

eth1      Link encap:Ethernet  HWaddr f0:ad:4e:00:44:24 
          inet addr:186.66.79.169  Bcast:255.255.255.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:576  Metric:1
          RX packets:93008 errors:0 dropped:558 overruns:0 frame:0
          TX packets:1078 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6506679 (6.2 MiB)  TX bytes:122340 (119.4 KiB)
          Interrupt:15

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:280 (280.0 B)  TX bytes:280 (280.0 B)

uap0      Link encap:Ethernet  HWaddr 00:24:23:27:a2:a7 
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::224:23ff:fe27:a2a7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1330 errors:0 dropped:0 overruns:0 frame:0
          TX packets:950 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:161959 (158.1 KiB)  TX bytes:173677 (169.6 KiB)



seyacat@sheevaplug-debian:~$ sudo iptables-save
# Generated by iptables-save v1.4.8 on Sat Nov 14 12:41:49 2009
*mangle
:PREROUTING ACCEPT [3170:572700]
:INPUT ACCEPT [2679:531171]
:FORWARD ACCEPT [455:32523]
:OUTPUT ACCEPT [1612:244258]
:POSTROUTING ACCEPT [2174:291826]
COMMIT
# Completed on Sat Nov 14 12:41:49 2009
# Generated by iptables-save v1.4.8 on Sat Nov 14 12:41:49 2009
*nat
:PREROUTING ACCEPT [307:26568]
:POSTROUTING ACCEPT [14:2973]
:OUTPUT ACCEPT [132:11015]
-A POSTROUTING -o eth1 -j MASQUERADE
COMMIT
# Completed on Sat Nov 14 12:41:49 2009
# Generated by iptables-save v1.4.8 on Sat Nov 14 12:41:49 2009
*filter
:INPUT ACCEPT [1578:406517]
:FORWARD ACCEPT [160:10095]
:OUTPUT ACCEPT [798:88534]
-A INPUT -i lo -j ACCEPT
-A INPUT -i uap0 -j ACCEPT
-A FORWARD -i uap0 -j ACCEPT
-A FORWARD -i eth0 -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -o uap0 -j ACCEPT
COMMIT
# Completed on Sat Nov 14 12:41:49 2009
Logged

pancho
Newbie
*

Karma: 1
Posts: 20


View Profile
« Reply #1 on: April 14, 2011, 11:43:44 PM »

Hi!

Check whether this command

Code:
# cat /proc/sys/net/ipv4/ip_forward
1

yields 0 or 1. It should be 1.

Do this:

Code:
# echo 1 > /proc/sys/net/ipv4/ip_forward

to enable ip forwarding.

This setting won't survive across reboots; for that, edit /etc/sysctl.conf, like this:

Code:
net.ipv4.ip_forward = 1

(See http://www.cyberciti.biz/tips/linux-as-router-for-dsl-t1-line-etc.html for reference).


Hope that it helps.

Cheers!


BTW, are you in Quito?
Logged

seyacat
Newbie
*

Karma: 0
Posts: 3


View Profile
« Reply #2 on: April 15, 2011, 07:13:06 PM »

i fond error, in /root/init_setup.sh i replace

echo 1 > /proc/sys/net/ipv4/ip_forward  //WORKS GREAT

by

sysctl -w net.ipv4.ip_forward=1  //NOT WORK

i think this is the same, but i wrong
Logged

Pages: [1]
Print
Jump to: