Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
R
railgun-routing-client
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
railgun-routing-client
Commits
4eef7b35
Commit
4eef7b35
authored
Nov 05, 2015
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5fe5b5ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
iptables-rules
iptables-rules
+1
-0
start.sh
start.sh
+0
-2
No files found.
iptables-rules
View file @
4eef7b35
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
-A PREROUTING -i ${RAILGUN_INTERFACE} -p tcp -m addrtype --dst-type LOCAL -j REDIRECT --to-ports 3100
-A PREROUTING -i ${RAILGUN_INTERFACE} -p tcp -m addrtype --dst-type LOCAL -j REDIRECT --to-ports 3100
# socks5 dns hack
# socks5 dns hack
-A OUTPUT -o ${RAILGUN_INTERFACE} -p udp --dport 53 -m owner --uid-owner proxy -j REDIRECT --to-ports 53
-A OUTPUT -o ${RAILGUN_INTERFACE} -p udp --dport 53 -m owner --uid-owner proxy -j REDIRECT --to-ports 53
-A POSTROUTING -o ${RAILGUN_INTERFACE} -s 10.0.0.0/8 -j SNAT --to-source ${RAILGUN_PRIVATE_ADDRESS}
COMMIT
COMMIT
*mangle
*mangle
-A PREROUTING -s ${RAILGUN_ADDRESS}/16 -p tcp -m addrtype ! --dst-type LOCAL -j TPROXY --on-port 5000 --on-ip 0.0.0.0 --tproxy-mark 0x3
-A PREROUTING -s ${RAILGUN_ADDRESS}/16 -p tcp -m addrtype ! --dst-type LOCAL -j TPROXY --on-port 5000 --on-ip 0.0.0.0 --tproxy-mark 0x3
...
...
start.sh
View file @
4eef7b35
...
@@ -17,9 +17,7 @@ echo 'iptables...'
...
@@ -17,9 +17,7 @@ echo 'iptables...'
envsubst < iptables-rules | iptables-restore
envsubst < iptables-rules | iptables-restore
# this server is a gateway
if
[
-n
"
${
RAILGUN_TOS
}
"
]
;
then
if
[
-n
"
${
RAILGUN_TOS
}
"
]
;
then
iptables
-t
nat
-A
POSTROUTING
-o
${
RAILGUN_INTERFACE
}
-s
10.0.0.0/8
-j
SNAT
--to-source
${
RAILGUN_PRIVATE_ADDRESS
}
iptables
-t
mangle
-A
PREROUTING
-s
10.0.0.0/16
-p
tcp
-m
addrtype
!
--dst-type
LOCAL
-m
tos
--tos
${
RAILGUN_TOS
}
-j
TPROXY
--on-port
5000
--on-ip
0.0.0.0
--tproxy-mark
0x3
iptables
-t
mangle
-A
PREROUTING
-s
10.0.0.0/16
-p
tcp
-m
addrtype
!
--dst-type
LOCAL
-m
tos
--tos
${
RAILGUN_TOS
}
-j
TPROXY
--on-port
5000
--on-ip
0.0.0.0
--tproxy-mark
0x3
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment