mimosinnet l33t
Joined: 10 Aug 2006 Posts: 717 Location: Barcelona, Spain
|
Posted: Sun Feb 01, 2009 3:58 pm Post subject: [SOLVED] Help on routing configuration |
|
|
Note: I just have solved the issue as I was finishing the message. It was an issue with firewalls, but I am leaving the message in case it is helpful to somebody else.
Although I have been able to get some success I have not been able to find the solution or even if this is possible. I would like to connect a Free Wireless Network with internet through my home network.
This is my routing schema at home, two routers with dd-wrt installed.
Code: | Internet
|
+---------------------------------------------------- HOME ----------------------------------------------
|
Samsung Power Ranger SCM140 (bridge)
|
WAN port
==============ROUTER=====================
ISP ip
Asus WL-500W
internal ip 192.168.1.1/24
========================================
LAN Ports USB
| | |
| | +--------Hard disk
| |
| +--------- LAN
|
LAN Ports
==============ROUTER=====================
192.168.1.2/24
Linksys Linksys WRT54G v.5, ip
10.139.6.194
========================================
Port WAN
|
+---------------------------------------------------- HOME ----------------------------------------------
|
================
Microtik, gw: 10.193.6.139
Free Wireless Network: guifi
of about 5000 nodes
(http://www.guifi.net/node/2413/view/map)
================
|
guifi network: 10.0.0.0/8
|
I can access internet and guifi from the clients in my home network. I have been able to make the hard disk (connected to the asus router) available to the guifi network. I have been unable to give access to internet to some clients from the guifi network (with iptables).
This is my routing table as given by the routers:
Code: | Asus:
192.168.1.0 255.255.255.0 0.0.0.0 LAN & WLAN
62.57.176.0 255.255.248.0 0.0.0.0 WAN
169.254.0.0 255.255.0.0 0.0.0.0 LAN & WLAN
10.0.0.0 255.0.0.0 192.168.1.2 LAN & WLAN
0.0.0.0 0.0.0.0 62.57.176.1 WAN
Linksys
10.139.6.192 255.255.255.224 0.0.0.0 WAN
192.168.1.0 255.255.255.0 0.0.0.0 LAN & WLAN
169.254.0.0 255.255.0.0 0.0.0.0 LAN & WLAN
10.0.0.0 255.0.0.0 10.139.6.193 WAN
0.0.0.0 0.0.0.0 192.168.1.1 LAN & WLAN |
Is it possible that somebody in the guifi network (i.e. A = 10.139.6.222) can access internet through my home network? I have tried giving the default gateway of the A computer the linksys public ip (10.139.6.194), but I am still unable to go through my home network.
Code: | Computer A (10.139.6.222)
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.139.6.192 0.0.0.0 255.255.255.224 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 10.139.6.194 0.0.0.0 UG 0 0 0 eth0 |
All the configuration was correct. I only needed to disable the firewall in the linksys router.
Now users from the guifi network can access internet trhough my home network.
Cheers! |
|