Browse Source

Allow hotspot ping

Bob Mottram 10 years ago
parent
commit
9bd26bf719
1 changed files with 13 additions and 5 deletions
  1. 13
    5
      install-freedombone.sh

+ 13
- 5
install-freedombone.sh View File

328
 WIFI_HOTSPOT_MODE="g"
328
 WIFI_HOTSPOT_MODE="g"
329
 
329
 
330
 # Static IP address for wifi hotspot
330
 # Static IP address for wifi hotspot
331
-WIFI_STATIC_IP_ADDRESS="192.168.1.53"
331
+WIFI_STATIC_IP_ADDRESS="192.168.4.1"
332
 
332
 
333
 # Subnet for wifi hotspot
333
 # Subnet for wifi hotspot
334
-WIFI_SUBNET="192.168.1.0"
334
+WIFI_SUBNET="192.168.4.0"
335
 
335
 
336
 # DHCP range for wifi hotspot
336
 # DHCP range for wifi hotspot
337
-WIFI_IP_RANGE_START="192.168.1.10"
338
-WIFI_IP_RANGE_END="192.168.1.20"
337
+WIFI_IP_RANGE_START="192.168.4.10"
338
+WIFI_IP_RANGE_END="192.168.4.20"
339
 
339
 
340
 # Broadcast address for wifi hotspot
340
 # Broadcast address for wifi hotspot
341
-WIFI_BROADCAST_ADDRESS="192.168.1.255"
341
+WIFI_BROADCAST_ADDRESS="192.168.4.255"
342
 
342
 
343
 # Comma separated list of DNS servers for wifi hotspot
343
 # Comma separated list of DNS servers for wifi hotspot
344
 WIFI_DNS_SERVERS="213.73.91.35, 85.214.20.141"
344
 WIFI_DNS_SERVERS="213.73.91.35, 85.214.20.141"
7228
   sed -i 's/net.ipv4.ip_forward=.*/net.ipv4.ip_forward=1/g' /etc/sysctl.conf
7228
   sed -i 's/net.ipv4.ip_forward=.*/net.ipv4.ip_forward=1/g' /etc/sysctl.conf
7229
   echo 1 > /proc/sys/net/ipv4/ip_forward
7229
   echo 1 > /proc/sys/net/ipv4/ip_forward
7230
 
7230
 
7231
+  sed -i "s/net.ipv4.conf.all.accept_redirects = 0/net.ipv4.conf.all.accept_redirects = 1/g" /etc/sysctl.conf
7232
+  sed -i "s/net.ipv4.conf.all.send_redirects = 0/net.ipv4.conf.all.send_redirects = 1/g" /etc/sysctl.conf
7233
+  sed -i "s/net.ipv4.conf.all.accept_source_route = 0/net.ipv4.conf.all.accept_source_route = 1/g" /etc/sysctl.conf
7234
+  sed -i "s/net.ipv4.conf.default.rp_filter=1/#net.ipv4.conf.default.rp_filter=1/g" /etc/sysctl.conf
7235
+  sed -i "s/net.ipv4.conf.all.rp_filter=1/#net.ipv4.conf.all.rp_filter=1/g" /etc/sysctl.conf
7236
+  sed -i "s/net.ipv4.ip_forward=0/#net.ipv4.ip_forward=1/g" /etc/sysctl.conf
7237
+  sed -i 's/net.ipv4.icmp_echo_ignore_all = 1/net.ipv4.icmp_echo_ignore_all = 0/g' /etc/sysctl.conf
7238
+
7231
   iptables --flush
7239
   iptables --flush
7232
   iptables --table nat --flush
7240
   iptables --table nat --flush
7233
   iptables --delete-chain
7241
   iptables --delete-chain