Jan Wagner revised this gist 10 years ago. Go to revision
1 file changed, 1 insertion, 1 deletion
openwrt_x86.install
| @@ -38,7 +38,7 @@ opkg install kmod-usb-hid kmod-hid-generic | |||
| 38 | 38 | opkg install luci-proto-ipv6 | |
| 39 | 39 | ||
| 40 | 40 | # install usefull packages | |
| 41 | - | opkg install tcpdump rsync | |
| 41 | + | opkg install tcpdump rsync ip | |
| 42 | 42 | ||
| 43 | 43 | # install webinterface (and QoS Interface) | |
| 44 | 44 | opkg install luci-mod-admin-full uhttpd libiwinfo-lua luci-app-qos luci-proto-ppp | |
Jan Wagner revised this gist 10 years ago. Go to revision
1 file changed, 3 insertions, 1 deletion
openwrt_x86.install
| @@ -48,11 +48,13 @@ opkg install luci-mod-admin-full uhttpd libiwinfo-lua luci-app-qos luci-proto-pp | |||
| 48 | 48 | opkg install kmod-tulip kmod-e1000e; modprobe e1000e; modprobe tulip | |
| 49 | 49 | ||
| 50 | 50 | # install shorewall | |
| 51 | - | opkg install shorewall-lite | |
| 51 | + | # opkg install shorewall-lite | |
| 52 | 52 | # install iptables packages | |
| 53 | 53 | opkg install iptables-mod-conntrack-extra iptables-mod-ipopt iptables-mod-iprange | |
| 54 | 54 | # optional iptables capabilities | |
| 55 | 55 | opkg install iptables-mod-filter iptables-mod-iface iptables-mod-ipp2p iptables-mod-ipv4options l7-protocols | |
| 56 | + | # install ipset | |
| 57 | + | opkg install ipset | |
| 56 | 58 | ||
| 57 | 59 | # here configuration of shorewall needs to be deployed | |
| 58 | 60 | # maybe look into http://wiki.openwrt.org/doc/recipes/shorewall-on-openwrt | |
Jan Wagner revised this gist 10 years ago. Go to revision
1 file changed, 3 insertions, 1 deletion
openwrt_x86.install
| @@ -48,7 +48,9 @@ opkg install luci-mod-admin-full uhttpd libiwinfo-lua luci-app-qos luci-proto-pp | |||
| 48 | 48 | opkg install kmod-tulip kmod-e1000e; modprobe e1000e; modprobe tulip | |
| 49 | 49 | ||
| 50 | 50 | # install shorewall | |
| 51 | - | opkg install shorewall-lite iptables-mod-conntrack-extra iptables-mod-ipopt iptables-mod-iprange | |
| 51 | + | opkg install shorewall-lite | |
| 52 | + | # install iptables packages | |
| 53 | + | opkg install iptables-mod-conntrack-extra iptables-mod-ipopt iptables-mod-iprange | |
| 52 | 54 | # optional iptables capabilities | |
| 53 | 55 | opkg install iptables-mod-filter iptables-mod-iface iptables-mod-ipp2p iptables-mod-ipv4options l7-protocols | |
| 54 | 56 | ||
waja revised this gist 10 years ago. Go to revision
1 file changed, 1 insertion, 1 deletion
openwrt_x86.install
| @@ -41,7 +41,7 @@ opkg install luci-proto-ipv6 | |||
| 41 | 41 | opkg install tcpdump rsync | |
| 42 | 42 | ||
| 43 | 43 | # install webinterface (and QoS Interface) | |
| 44 | - | opkg install luci-mod-admin-full luci-theme-openwrt uhttpd libiwinfo-lua luci-app-qos luci-proto-ppp | |
| 44 | + | opkg install luci-mod-admin-full uhttpd libiwinfo-lua luci-app-qos luci-proto-ppp | |
| 45 | 45 | /etc/init.d/uhttpd enable; /etc/init.d/uhttpd start | |
| 46 | 46 | ||
| 47 | 47 | # enable network hardware | |
Jan Wagner revised this gist 11 years ago. Go to revision
1 file changed, 2 insertions, 2 deletions
openwrt_x86.install
| @@ -42,7 +42,7 @@ opkg install tcpdump rsync | |||
| 42 | 42 | ||
| 43 | 43 | # install webinterface (and QoS Interface) | |
| 44 | 44 | opkg install luci-mod-admin-full luci-theme-openwrt uhttpd libiwinfo-lua luci-app-qos luci-proto-ppp | |
| 45 | - | /etc/init.d/uhttpd enable && /etc/init.d/uhttpd start | |
| 45 | + | /etc/init.d/uhttpd enable; /etc/init.d/uhttpd start | |
| 46 | 46 | ||
| 47 | 47 | # enable network hardware | |
| 48 | 48 | opkg install kmod-tulip kmod-e1000e; modprobe e1000e; modprobe tulip | |
| @@ -61,4 +61,4 @@ SBIN=$(which shorewall-lite); sed -i "s#/usr/sbin/shorewall-lite#${SBIN}#g" /etc | |||
| 61 | 61 | # Fix broken shorewallrc | |
| 62 | 62 | SBIN=$(which shorewall-lite); SBINDIR=$(dirname ${SBIN}); sed -i s#/usr/sbin#${SBINDIR}#g /usr/share/shorewall/shorewallrc | |
| 63 | 63 | # enable shorewall | |
| 64 | - | /etc/init.d/shorewall-lite enable | |
| 64 | + | /etc/init.d/shorewall-lite enable | |
waja revised this gist 11 years ago. Go to revision
1 file changed, 3 insertions
openwrt_x86.install
| @@ -34,6 +34,9 @@ opkg update | |||
| 34 | 34 | # install usb keyboad support | |
| 35 | 35 | opkg install kmod-usb-hid kmod-hid-generic | |
| 36 | 36 | ||
| 37 | + | # install ipv6 config webinterface part | |
| 38 | + | opkg install luci-proto-ipv6 | |
| 39 | + | ||
| 37 | 40 | # install usefull packages | |
| 38 | 41 | opkg install tcpdump rsync | |
| 39 | 42 | ||
waja revised this gist 11 years ago. Go to revision
1 file changed, 3 insertions
openwrt_x86.install
| @@ -34,6 +34,9 @@ opkg update | |||
| 34 | 34 | # install usb keyboad support | |
| 35 | 35 | opkg install kmod-usb-hid kmod-hid-generic | |
| 36 | 36 | ||
| 37 | + | # install usefull packages | |
| 38 | + | opkg install tcpdump rsync | |
| 39 | + | ||
| 37 | 40 | # install webinterface (and QoS Interface) | |
| 38 | 41 | opkg install luci-mod-admin-full luci-theme-openwrt uhttpd libiwinfo-lua luci-app-qos luci-proto-ppp | |
| 39 | 42 | /etc/init.d/uhttpd enable && /etc/init.d/uhttpd start | |
waja revised this gist 11 years ago. Go to revision
1 file changed, 1 insertion, 1 deletion
openwrt_x86.install
| @@ -35,7 +35,7 @@ opkg update | |||
| 35 | 35 | opkg install kmod-usb-hid kmod-hid-generic | |
| 36 | 36 | ||
| 37 | 37 | # install webinterface (and QoS Interface) | |
| 38 | - | opkg install luci-mod-admin-full luci-theme-openwrt uhttpd libiwinfo-lua luci-app-qos | |
| 38 | + | opkg install luci-mod-admin-full luci-theme-openwrt uhttpd libiwinfo-lua luci-app-qos luci-proto-ppp | |
| 39 | 39 | /etc/init.d/uhttpd enable && /etc/init.d/uhttpd start | |
| 40 | 40 | ||
| 41 | 41 | # enable network hardware | |
waja revised this gist 11 years ago. Go to revision
1 file changed, 3 insertions, 2 deletions
openwrt_x86.install
| @@ -4,6 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | 5 | # disable dhcp on lan interface (just in case there is a dhcp server running) | |
| 6 | 6 | uci set dhcp.lan.ignore=1 | |
| 7 | + | uci set dhcp.@dnsmasq[0].nonegcache=1 | |
| 7 | 8 | uci commit dhcp | |
| 8 | 9 | /etc/init.d/dnsmasq restart | |
| 9 | 10 | ||
| @@ -33,8 +34,8 @@ opkg update | |||
| 33 | 34 | # install usb keyboad support | |
| 34 | 35 | opkg install kmod-usb-hid kmod-hid-generic | |
| 35 | 36 | ||
| 36 | - | # install webinterface | |
| 37 | - | opkg install luci-mod-admin-full luci-theme-openwrt uhttpd libiwinfo-lua | |
| 37 | + | # install webinterface (and QoS Interface) | |
| 38 | + | opkg install luci-mod-admin-full luci-theme-openwrt uhttpd libiwinfo-lua luci-app-qos | |
| 38 | 39 | /etc/init.d/uhttpd enable && /etc/init.d/uhttpd start | |
| 39 | 40 | ||
| 40 | 41 | # enable network hardware | |
waja revised this gist 11 years ago. Go to revision
1 file changed, 57 insertions
openwrt_x86.install(file created)
| @@ -0,0 +1,57 @@ | |||
| 1 | + | # look also at | |
| 2 | + | # http://wiki.openwrt.org/doc/recipes/relayclient | |
| 3 | + | # http://wiki.openwrt.org/doc/recipes/dumbap | |
| 4 | + | ||
| 5 | + | # disable dhcp on lan interface (just in case there is a dhcp server running) | |
| 6 | + | uci set dhcp.lan.ignore=1 | |
| 7 | + | uci commit dhcp | |
| 8 | + | /etc/init.d/dnsmasq restart | |
| 9 | + | ||
| 10 | + | # set network config (adjust as your needs) | |
| 11 | + | uci set network.lan.gateway=192.168.10.1 | |
| 12 | + | uci set network.lan.dns=8.8.8.8 | |
| 13 | + | uci commit network | |
| 14 | + | /etc/init.d/network reload | |
| 15 | + | ||
| 16 | + | # rename the router | |
| 17 | + | uci set system.@system[0].hostname=MyRouter | |
| 18 | + | uci commit system | |
| 19 | + | /etc/init.d/system restart | |
| 20 | + | ||
| 21 | + | # enable remote logging | |
| 22 | + | uci set system.@system[0].log_ip=192.168.1.2 | |
| 23 | + | uci set system.@system[0].conloglevel=7 | |
| 24 | + | uci commit system | |
| 25 | + | /etc/init.d/log restart | |
| 26 | + | ||
| 27 | + | # disable preinstalled firewall | |
| 28 | + | /etc/init.d/firewall disable && /etc/init.d/firewall stop | |
| 29 | + | ||
| 30 | + | # refresh list of available packages | |
| 31 | + | opkg update | |
| 32 | + | ||
| 33 | + | # install usb keyboad support | |
| 34 | + | opkg install kmod-usb-hid kmod-hid-generic | |
| 35 | + | ||
| 36 | + | # install webinterface | |
| 37 | + | opkg install luci-mod-admin-full luci-theme-openwrt uhttpd libiwinfo-lua | |
| 38 | + | /etc/init.d/uhttpd enable && /etc/init.d/uhttpd start | |
| 39 | + | ||
| 40 | + | # enable network hardware | |
| 41 | + | opkg install kmod-tulip kmod-e1000e; modprobe e1000e; modprobe tulip | |
| 42 | + | ||
| 43 | + | # install shorewall | |
| 44 | + | opkg install shorewall-lite iptables-mod-conntrack-extra iptables-mod-ipopt iptables-mod-iprange | |
| 45 | + | # optional iptables capabilities | |
| 46 | + | opkg install iptables-mod-filter iptables-mod-iface iptables-mod-ipp2p iptables-mod-ipv4options l7-protocols | |
| 47 | + | ||
| 48 | + | # here configuration of shorewall needs to be deployed | |
| 49 | + | # maybe look into http://wiki.openwrt.org/doc/recipes/shorewall-on-openwrt | |
| 50 | + | #mkdir -p /etc/shorewall-lite/state/ && touch /etc/shorewall-lite/state/firewall | |
| 51 | + | ||
| 52 | + | # Fix broken shorewall-lite Makefile | |
| 53 | + | SBIN=$(which shorewall-lite); sed -i "s#/usr/sbin/shorewall-lite#${SBIN}#g" /etc/shorewall-lite/Makefile | |
| 54 | + | # Fix broken shorewallrc | |
| 55 | + | SBIN=$(which shorewall-lite); SBINDIR=$(dirname ${SBIN}); sed -i s#/usr/sbin#${SBINDIR}#g /usr/share/shorewall/shorewallrc | |
| 56 | + | # enable shorewall | |
| 57 | + | /etc/init.d/shorewall-lite enable | |