busqosa.blogg.se

Routeros raspberry pi 3
Routeros raspberry pi 3







Iptables -I FORWARD -i wlan0 -o eth1 -s 192.168.0.0/24 -m conntrack -ctstate NEW -j ACCEPT Iptables -I FORWARD -i eth0 -o eth1 -s 192.168.0.0/24 -m conntrack -ctstate NEW -j ACCEPT I also configured routing thru iptables with those commands: # Allow traffic initiated from LAN to access "the world" *eth1: static ip 192.168.1.1 ( as it's connected to my modem ) Tho you can se all of them, here's my static IPs: Listen-address=192.168.0.254 # Explicitly specify the address to listen onīind-interfaces # Bind to the interface to make sure we aren't sending things elsewhere it is setup like this in /etc/nf: interface=eth0 # Use interface eth0 The dnsmasq DHCP server gives IPs to local wired and wireless devices. Wlan0: will be the wifi access-point of my local network.Īll 3 devices own their IP configured as static in the /etc/networks/interfaces file. i want it to be the only link of my whole ( wired and wireless ) local network with the outside world thru my adsl modem. it will be connected to a hub and serve as a DHCP server to my local wired network.Įth1: only the USBeth is connected to my modem. I've disabled DHCP and wifi of my adsl modem.Įth0: the pi's onboard ethernet. Soft: Raspbian scratch with hostapd and dnsmasq running Hard: a Pi with an external USB ethernet device I've played with several 10s of configurations shown on the web, but none of them work. It's been more than 1 week am trying to configure my Pi as an internet gateway.









Routeros raspberry pi 3