mirror of
https://github.com/wismna/HackPi.git
synced 2025-10-03 15:40:16 -04:00
23 lines
621 B
Plaintext
23 lines
621 B
Plaintext
![]() |
# interfaces(5) file used by ifup(8) and ifdown(8)
|
||
|
|
||
|
# Please note that this file is written to be used with dhcpcd
|
||
|
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
|
||
|
|
||
|
# Include files from /etc/network/interfaces.d:
|
||
|
source-directory /etc/network/interfaces.d
|
||
|
|
||
|
auto lo br0
|
||
|
iface lo inet loopback
|
||
|
|
||
|
#allow-hotplug usb0
|
||
|
iface usb0 inet manual
|
||
|
#allow-hotplug usb1
|
||
|
iface usb1 inet manual
|
||
|
|
||
|
iface br0 inet static
|
||
|
bridge_ports usb0 usb1
|
||
|
address 1.0.0.1
|
||
|
netmask 0.0.0.0
|
||
|
post-up route add -net 0.0.0.0/0
|
||
|
post-up iptables -t nat -A PREROUTING -i br0 -p tcp --dport 80 -j REDIRECT --to-port 1337
|