Browse Source

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

Luke Cyca 10 years ago
parent
commit
8f4c9ea5f3
2 changed files with 12 additions and 3 deletions
  1. 1
    1
      README.textile
  2. 11
    2
      roles/ircbouncer/templates/var_lib_znc_configs_znc.conf.j2

+ 1
- 1
README.textile View File

191
 
191
 
192
 h3. 7. Miscellaneous Configuration
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
 * Sign into ownCloud to set it up. You should select postgresql as the configuration backend.
195
 * Sign into ownCloud to set it up. You should select postgresql as the configuration backend.
196
 
196
 
197
 h2. How To Use Your New Personal Cloud
197
 h2. How To Use Your New Personal Cloud

+ 11
- 2
roles/ircbouncer/templates/var_lib_znc_configs_znc.conf.j2 View File

24
 
24
 
25
 <Listener listener0>
25
 <Listener listener0>
26
 	AllowIRC = true
26
 	AllowIRC = true
27
-	AllowWeb = true
27
+	AllowWeb = false
28
 	IPv4 = true
28
 	IPv4 = true
29
-	IPv6 = false
29
+	IPv6 = true
30
 	Port = 6697
30
 	Port = 6697
31
 	SSL = true
31
 	SSL = true
32
 </Listener>
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
 <User {{ irc_nick }}>
43
 <User {{ irc_nick }}>
35
 	Admin = true
44
 	Admin = true
36
 	Allow = *
45
 	Allow = *

Loading…
Cancel
Save