enricorossi.org

Enrico Rossi


Linksys Openwrt

IT flag

Appunti sul setup dell’OpenWRT nel router Linksys.

password: mypassword

/etc/firewall.user

### DMZ
## -- Connections to ports not handled above will be forwarded to 192.168.1.2
iptables -t nat -A prerouting_wan -j DNAT --to IP-DMZ-SERVER
iptables        -A forwarding_wan -d IP-DMZ-SERVER -j ACCEPT

nvram set and nvram commit

wl0_macmode=allow
wl0_maclist="MAC-ADDR-1 MAC-ADDR-2 ..."
log_ipaddr=IP-LOG-SERVER

/etc/dnsmasq.conf

#read-ethers
dhcp-host=MAC-ADDR-1,IP-1,infinite
dhcp-host=MAC-ADDR-2,IP-2,infinite
[...]

/etc/hosts

127.0.0.1 localhost OpenWrt
a.b.c.d smtp.lan smtp