Преглед изворни кода

Put ZNC web interface on its on port that is inaccessible through the firewall

Luke Cyca пре 10 година
родитељ
комит
8f4c9ea5f3
2 измењених фајлова са 12 додато и 3 уклоњено
  1. 1
    1
      README.textile
  2. 11
    2
      roles/ircbouncer/templates/var_lib_znc_configs_znc.conf.j2

+ 1
- 1
README.textile Прегледај датотеку

@@ -191,7 +191,7 @@ Set up SPF and reverse DNS "as per this post":http://sealedabstract.com/code/nsa
191 191
 
192 192
 h3. 7. Miscellaneous Configuration
193 193
 
194
-* Sign in to the ZNC web interface and set things up to your liking.
194
+* Sign in to the ZNC web interface and set things up to your liking. It isn't exposed through the firewall, so you must first set up an SSH tunnel @ssh deploy@example.com -L 6643:localhost:6643@ and then proceed to http://localhost:6643 in your web browser.
195 195
 * Sign into ownCloud to set it up. You should select postgresql as the configuration backend.
196 196
 
197 197
 h2. How To Use Your New Personal Cloud

+ 11
- 2
roles/ircbouncer/templates/var_lib_znc_configs_znc.conf.j2 Прегледај датотеку

@@ -24,13 +24,22 @@ Version = 1.0
24 24
 
25 25
 <Listener listener0>
26 26
 	AllowIRC = true
27
-	AllowWeb = true
27
+	AllowWeb = false
28 28
 	IPv4 = true
29
-	IPv6 = false
29
+	IPv6 = true
30 30
 	Port = 6697
31 31
 	SSL = true
32 32
 </Listener>
33 33
 
34
+<Listener listener1>
35
+	AllowIRC = false
36
+	AllowWeb = true
37
+	IPv4 = true
38
+	IPv6 = true
39
+	Port = 6643
40
+	SSL = false
41
+</Listener>
42
+
34 43
 <User {{ irc_nick }}>
35 44
 	Admin = true
36 45
 	Allow = *

Loading…
Откажи
Сачувај