Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Debian as router
(edit)
Revision as of 12:40, 31 October 2018
247 bytes added
,
12:40, 31 October 2018
→Stop Script
Line 77:
Line 77:
clear_nat
clear_nat
sudo iptables -t nat --line-numbers -L -n -v</source>
sudo iptables -t nat --line-numbers -L -n -v</source>
+
+
== Multiple routes for one source ==
+
* The more specific rule must go first
+
sudo iptables -t nat -A POSTROUTING -s 15.17.170.206 -d 10.0.192.0/18 -o tun0 -j MASQUERADE
+
sudo iptables -t nat -A POSTROUTING -s 15.17.170.206 -o wlan0 -j MASQUERADE
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version