-
Notifications
You must be signed in to change notification settings - Fork 2
/
configurations.txt
101 lines (78 loc) · 2.24 KB
/
configurations.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
############################
# /etc/hostapd/hostapd.conf
##############################
créez le fichier avec les lignes suivantes
en remplaçant "password" par un mot de passe
de votre choix
-----------------START------------------
interface=wlan0
driver=nl80211
ssid=IOT
hw_mode=g
channel=11
wpa=2
wpa_passphrase=password
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
wpa_ptk_rekey=600
#macaddr_acl=0
-----------------END--------------------
############################
# /etc/dhcp/dhcpd.conf
##############################
insérez au début les lignes suivantes et effacez le reste
-----------------START------------------
#option domain-name "iot-firewall";
#option domain-name-servers 8.8.8.8
ddns-update-style none;
log-facility local7;
subnet 10.10.0.0 netmask 255.255.255.0 {
range 10.10.0.100 10.10.0.150;
default-lease-time 600;
max-lease-time 7200;
option domain-name-servers 8.8.8.8;
option routers 10.10.0.1;
option subnet-mask 255.255.255.0;
interface wlan0;
}
-----------------END--------------------
############################
# /etc/sysctl.conf
##############################
enlevez le # devant la ligne suivante ou créez la
-----------------START------------------
net.ipv4.ip_forward=1
-----------------END--------------------
############################
# /etc/default/isc-dhcp-server
##############################
complétez la ligne suivante
-----------------START------------------
INTERFACESv4="wlan0"
-----------------END--------------------
############################
# /etc/default/dnsmasq
##############################
vérifiez que vous ayez la ligne suivante
-----------------START------------------
ENABLED=1
-----------------END--------------------
############################
# /etc/network/interfaces
##############################
insérez au début les lignes suivantes et effacez le reste
-----------------START------------------
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto eth0
iface eth0 inet dhcp
#wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
# IP ADDRESS FOR IOT FW #
allow-hotplug wlan0
auto wlan0
iface wlan0 inet static
hostapd /etc/hostapd/hostapd.conf
address 10.10.0.1
netmask 255.255.255.0
-----------------END--------------------