![]() ![]() Iptables -A FORWARD -i eth0 -o wlan -j ACCEPT Iptables -A FORWARD -i wlan1 -o eth0 -j ACCEPT This is done with iptables the standard series of commands would be something like: sysctl -w _forward=1 You could use the linux virtual bridge, for this, but I think it is more commonplace to use IP forwarding and NAT. Trying to shove them together is not a simpler solution. You could also consider it technically similar to an access point. What you describe in "desired function" is a network bridge, except perhaps it is unidirectional in some sense, which is essentially a router: Instead of an uplink, you have another subnet on the eth interface. However, I cannot access the eth0 connected device when I am connected via wifi, presumably because it is on a different subnet. So far I have managed to get my eth0 and wlan1 adapters configured to give IPs on two different subnets with the below dnsmasq and dhcpcd configurations # nfĭhcp-range=wlan1,192.168.4.2,192.168.4.99,24hĭhcp-range=eth0,192.168.5.1,192.168.5.99,24h ![]() User can access configuration interface of eth0 connected device via local IP address.Separate device connects to RPi via eth0 and is given an IP.User connects to RPi AP via wlan1 and is given an IP.I'm trying to configure my RPi to give me access to devices conencted either of eth0 or wlan1. ![]()
0 Comments
Leave a Reply. |