summaryrefslogtreecommitdiff
path: root/files/common/etc/config
diff options
context:
space:
mode:
authorKatze Miau <miaukatzemiau@priveasy.de>2011-10-16 07:34:24 (GMT)
committerKatze Miau <miaukatzemiau@priveasy.de>2011-10-16 07:34:24 (GMT)
commit9ae01954ef11947693894cf188d75603ab161aac (patch)
tree84a28cd644955e52bd6b91f2c474e9f338841119 /files/common/etc/config
parent425e20c0b13cb117e4d2fff04f523478a0618e24 (diff)
add makefile to generate images
Diffstat (limited to 'files/common/etc/config')
-rw-r--r--files/common/etc/config/batman-adv10
-rw-r--r--files/common/etc/config/firewall50
-rw-r--r--files/common/etc/config/n2n17
-rw-r--r--files/common/etc/config/network39
-rw-r--r--files/common/etc/config/splash_users1
-rw-r--r--files/common/etc/config/system17
-rw-r--r--files/common/etc/config/uhttpd39
-rw-r--r--files/common/etc/config/wireless16
8 files changed, 189 insertions, 0 deletions
diff --git a/files/common/etc/config/batman-adv b/files/common/etc/config/batman-adv
new file mode 100644
index 0000000..cc8db5f
--- /dev/null
+++ b/files/common/etc/config/batman-adv
@@ -0,0 +1,10 @@
+config 'mesh' 'bat0'
+ option 'interfaces' 'ath1'
+ option 'orig_interval'
+ option 'log_level'
+ option 'aggregated_ogms'
+ option 'bonding'
+ option 'fragmentation'
+ option 'vis_mode'
+ option 'gw_mode' 'client'
+
diff --git a/files/common/etc/config/firewall b/files/common/etc/config/firewall
new file mode 100644
index 0000000..4b702ba
--- /dev/null
+++ b/files/common/etc/config/firewall
@@ -0,0 +1,50 @@
+config defaults
+ option syn_flood 1
+ option input ACCEPT
+ option output ACCEPT
+ option forward REJECT
+
+config zone
+ option name wan
+ option input REJECT
+ option output ACCEPT
+ option forward REJECT
+ option masq 1
+ option mtu_fix 1
+config zone
+ option name mesh
+ option input ACCEPT
+ option output ACCEPT
+ option forward REJECT
+config zone
+ option name lan
+ option input ACCEPT
+ option output ACCEPT
+ option forward REJECT
+config forwarding
+ option src mesh
+ option dest wan
+
+config forwarding
+ option src lan
+ option dest wan
+
+# We need to accept udp packets on port 68,
+# see https://dev.openwrt.org/ticket/4108
+config rule
+ option src wan
+ option proto udp
+ option dest_port 68
+ option target ACCEPT
+
+#Allow ping
+config rule
+ option src wan
+ option proto icmp
+ option icmp_type echo-request
+ option target ACCEPT
+
+# include a file with users custom iptables rules
+config include
+ option path /etc/firewall.user
+
diff --git a/files/common/etc/config/n2n b/files/common/etc/config/n2n
new file mode 100644
index 0000000..58cccdc
--- /dev/null
+++ b/files/common/etc/config/n2n
@@ -0,0 +1,17 @@
+config edge
+ option ipaddr '1.2.3.4'
+ option supernode 'fritz-der-server.de'
+ option port '2009'
+ option community 'ffj1'
+ option key 'ffj1'
+ option devname 'n2n1'
+ option route ''
+config edge
+ option ipaddr '1.2.3.4'
+ option supernode '89.238.83.22'
+ option port '9876'
+ option community 'ffj2'
+ option key 'ffj2'
+ option devname 'n2n2'
+ option route ''
+
diff --git a/files/common/etc/config/network b/files/common/etc/config/network
new file mode 100644
index 0000000..b0d6d9e
--- /dev/null
+++ b/files/common/etc/config/network
@@ -0,0 +1,39 @@
+
+config 'interface' 'loopback'
+ option 'ifname' 'lo'
+ option 'proto' 'static'
+ option 'ipaddr' '127.0.0.1'
+ option 'netmask' '255.0.0.0'
+
+config 'interface' 'mesh'
+ option 'type' 'bridge'
+ option 'ifname' 'bat0 ath0'
+ option 'mtu' '1527'
+
+config 'interface' 'lan'
+ option 'type' 'bridge'
+ option 'proto' 'static'
+ option 'ipaddr' '10.17.200.1'
+ option 'netmask' '255.255.255.0'
+ option 'ifname' 'eth0.1'
+
+config 'switch' 'eth0'
+ option 'name' 'eth0'
+ option 'reset' '1'
+ option 'enable_vlan' '1'
+
+config 'switch_vlan' 'eth0_1'
+ option 'device' 'eth0'
+ option 'vlan' '1'
+ option 'ports' '0 1 2 3 5t'
+
+config 'switch_vlan' 'eth0_2'
+ option 'device' 'eth0'
+ option 'vlan' '2'
+ option 'ports' '4 5t'
+
+config 'interface' 'wan'
+ option 'ifname' 'eth0.2'
+ option 'proto' 'dhcp'
+ option 'dns' '217.11.48.200 217.11.49.200 8.8.8.8'
+
diff --git a/files/common/etc/config/splash_users b/files/common/etc/config/splash_users
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/files/common/etc/config/splash_users
@@ -0,0 +1 @@
+
diff --git a/files/common/etc/config/system b/files/common/etc/config/system
new file mode 100644
index 0000000..3d9683c
--- /dev/null
+++ b/files/common/etc/config/system
@@ -0,0 +1,17 @@
+config system
+ option hostname OpenWrt
+ option timezone CET
+
+config button
+ option button reset
+ option action released
+ option handler "logger reboot"
+ option min 0
+ option max 4
+
+config button
+ option button reset
+ option action released
+ option handler "logger factory default"
+ option min 5
+ option max 30
diff --git a/files/common/etc/config/uhttpd b/files/common/etc/config/uhttpd
new file mode 100644
index 0000000..8320d42
--- /dev/null
+++ b/files/common/etc/config/uhttpd
@@ -0,0 +1,39 @@
+# Server configuration
+config uhttpd main
+
+ # HTTP listen addresses, multiple allowed
+ list listen_http 0.0.0.0:80
+ # Server document root
+ option home /www
+ option error_page /cgi-bin/redirect
+ option index_page cgi-bin/redirect
+ # Reject requests from RFC1918 IP addresses
+ # directed to the servers public IP(s).
+ # This is a DNS rebinding countermeasure.
+ option rfc1918_filter 1
+
+ # CGI url prefix, will be searched in docroot.
+ # Default is /cgi-bin
+ option cgi_prefix /cgi-bin
+
+ # CGI/Lua timeout, if the called script does not
+ # write data within the given amount of seconds,
+ # the server will terminate the request with
+ # 504 Gateway Timeout response.
+ option script_timeout 60
+
+ # Network timeout, if the current connection is
+ # blocked for the specified amount of seconds,
+ # the server will terminate the associated
+ # request process.
+ option network_timeout 30
+
+ # TCP Keep-Alive, send periodic keep-alive probes
+ # over established connections to detect dead peers.
+ # The value is given in seconds to specify the
+ # interval between subsequent probes.
+ # Setting this to 0 will disable TCP keep-alive.
+ option tcp_keepalive 1
+
+
+
diff --git a/files/common/etc/config/wireless b/files/common/etc/config/wireless
new file mode 100644
index 0000000..17dd0b7
--- /dev/null
+++ b/files/common/etc/config/wireless
@@ -0,0 +1,16 @@
+config wifi-device wifi0
+ option type atheros
+ option channel 1
+
+config wifi-iface
+ option device wifi0
+ option mode adhoc
+ option ssid batman.jena.freifunk.net
+ option bssid 12:CA:FF:EE:BA:BE
+ option hidden 1
+
+config wifi-iface
+ option device wifi0
+ option mode ap
+ option ssid www.freifunk-jena.de
+
contact: Jan Huwald // Impressum