Results 1 to 2 of 2
Ok I am new to this both forums and iptables etc. Background I have a Beaglebone running debian. On this device I am using eth0 (setup as a dhcp server ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-31-2014 #1
- Join Date
- Jul 2014
Routing 2 subnets
I have a Beaglebone running debian. On this device I am using eth0 (setup as a dhcp server - 192.168.2.0/24). I have a wlan0 set up as an access point (192.168.4.0/24). I am using HostAPD for the access point and dnsmasq as the dhcp server in both cases. The idea is that I provide an IP address to the device(s) on eth0 and then allow access to this device through the access point on wlan0. The DHCP server is working and providing IP addresses as required on eth0 and on the access point.
I need now to do the allowing of any device on the access point to talk to the device(s) on the eth0. This is proving most difficult and some input from someone with more knowledge than me.
iface lo inet loopback
iface eth0 inet static
iface wlan0 inet static
Currently I have a Ubuntu PC connected to eth0, and a windows XP machine and my phone connected to my access point. I can ping from any device to the relevant 192.168.x.1
I know I must set up ipforward = 1 but other than this tried a variety of iptables setups and nat etc but as i don't know enough about this part I thought I wouldn't mislead anyone.
Hope someone can guide me
- 09-04-2014 #2
- Join Date
- Sep 2014
- Seattle, WA
Please post the output from the following commands:
/sbin/iptables -L ip addr ip route cat /proc/sys/net/ipv4/ip_forward