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
6a54a30e
Commit
6a54a30e
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Enable ipv6 when i2p is installed
parent
1e687aa5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-utils-firewall
+1
-1
1 addition, 1 deletion
src/freedombone-utils-firewall
src/freedombone-utils-i2p
+14
-0
14 additions, 0 deletions
src/freedombone-utils-i2p
with
15 additions
and
1 deletion
src/freedombone-utils-firewall
+
1
−
1
View file @
6a54a30e
...
@@ -265,7 +265,7 @@ function configure_internet_protocol {
...
@@ -265,7 +265,7 @@ function configure_internet_protocol {
if
!
grep
-q
"ignore pings"
/etc/sysctl.conf
;
then
if
!
grep
-q
"ignore pings"
/etc/sysctl.conf
;
then
echo
'# ignore pings'
>>
/etc/sysctl.conf
echo
'# ignore pings'
>>
/etc/sysctl.conf
echo
'net.ipv4.icmp_echo_ignore_all = 1'
>>
/etc/sysctl.conf
echo
'net.ipv4.icmp_echo_ignore_all = 1'
>>
/etc/sysctl.conf
echo
'net.ipv6.icmp_echo_ignore_all = 1'
>>
/etc/sysctl.conf
#
echo 'net.ipv6.icmp_echo_ignore_all = 1' >> /etc/sysctl.conf
fi
fi
if
!
grep
-q
"disable ipv6"
/etc/sysctl.conf
;
then
if
!
grep
-q
"disable ipv6"
/etc/sysctl.conf
;
then
echo
'# disable ipv6'
>>
/etc/sysctl.conf
echo
'# disable ipv6'
>>
/etc/sysctl.conf
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-i2p
+
14
−
0
View file @
6a54a30e
...
@@ -53,10 +53,24 @@ function install_i2p {
...
@@ -53,10 +53,24 @@ function install_i2p {
echo
"deb https://
${
I2P_DOMAIN
}
/ stretch main"
>
/etc/apt/sources.list.d/i2p.list
echo
"deb https://
${
I2P_DOMAIN
}
/ stretch main"
>
/etc/apt/sources.list.d/i2p.list
echo
"deb-src https://
${
I2P_DOMAIN
}
/ stretch main"
>>
/etc/apt/sources.list.d/i2p.list
echo
"deb-src https://
${
I2P_DOMAIN
}
/ stretch main"
>>
/etc/apt/sources.list.d/i2p.list
# i2p needs ipv6 to be enabled
sed
-i
's|net.ipv6.conf.all.disable_ipv6.*|net.ipv6.conf.all.disable_ipv6 = 0|g'
/etc/sysctl.conf
/sbin/sysctl
-p
-q
apt-get update
apt-get update
apt-get
-yq
install
i2p i2p-keyring
apt-get
-yq
install
i2p i2p-keyring
}
}
function
remove_i2p
{
function
remove_i2p
{
apt-get
-yq
remove i2p i2p-keyring
--purge
apt-get
-yq
remove i2p i2p-keyring
--purge
# It's assumed here that ipv6 is only needed for i2p
# This might not be true in future
sed
-i
's|net.ipv6.conf.all.disable_ipv6.*|net.ipv6.conf.all.disable_ipv6 = 1|g'
/etc/sysctl.conf
/sbin/sysctl
-p
-q
}
function
i2p_enable_sam
{
sed
-i
's|clientApp.1.startOnLoad=.*|clientApp.1.startOnLoad=true|g'
/var/lib/i2p/i2p-config/clients.config
systemctl restart i2p
}
}
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