Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
ff543a91
Commit
ff543a91
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
onion port for irc
parent
610d3184
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-app-irc
+17
-4
17 additions, 4 deletions
src/freedombone-app-irc
with
17 additions
and
4 deletions
src/freedombone-app-irc
+
17
−
4
View file @
ff543a91
...
...
@@ -34,7 +34,7 @@ IN_DEFAULT_INSTALL=1
SHOW_ON_ABOUT
=
1
IRC_BOUNCER_PORT
=
6697
IRC_ONION_PORT
=
$IRC_BOUNCER_PORT
IRC_ONION_PORT
=
8098
IRC_PORT
=
6698
# An optional password to log into IRC. This applies to all users
...
...
@@ -59,10 +59,10 @@ function start_irc_bouncer {
update_default_domain
if
[
!
-f
/home/znc/.znc/znc.pem
]
;
then
# no certificate exists
su
-c
'znc -p'
- znc
su
-c
'
proxychains
znc -p'
- znc
else
# an existing certificate is being used
su
-c
'znc'
- znc
su
-c
'
proxychains
znc'
- znc
fi
}
...
...
@@ -578,7 +578,7 @@ function install_irc_bouncer {
return
fi
apt-get
-yq
-t
jessie-backports
install
znc
apt-get
-yq
-t
jessie-backports
install
znc
proxychains
adduser
--disabled-login
--gecos
'znc'
znc
...
...
@@ -605,6 +605,19 @@ function install_irc_bouncer {
echo
'</Listener>'
>>
/home/znc/.znc/configs/znc.conf
echo
''
>>
/home/znc/.znc/configs/znc.conf
if
[
$IRC_PORT
-ne
$IRC_ONION_PORT
]
;
then
echo
'<Listener listener1>'
>>
/home/znc/.znc/configs/znc.conf
echo
' AllowIRC = true'
>>
/home/znc/.znc/configs/znc.conf
echo
' AllowWeb = false'
>>
/home/znc/.znc/configs/znc.conf
echo
' IPv4 = true'
>>
/home/znc/.znc/configs/znc.conf
echo
' IPv6 = true'
>>
/home/znc/.znc/configs/znc.conf
echo
" Port =
${
IRC_ONION_PORT
}
"
>>
/home/znc/.znc/configs/znc.conf
echo
' SSL = false'
>>
/home/znc/.znc/configs/znc.conf
echo
' URIPrefix = /'
>>
/home/znc/.znc/configs/znc.conf
echo
'</Listener>'
>>
/home/znc/.znc/configs/znc.conf
echo
''
>>
/home/znc/.znc/configs/znc.conf
fi
chown
-R
znc:znc /home/znc/.znc
add_user_irc_bouncer
"
${
MY_USERNAME
}
"
"
${
IRC_PASSWORD
}
"
true
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment