projects
/
pxelator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec4a3f8
)
masquarade 10.60.4.x network
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 11 Sep 2014 13:51:22 +0000
(13:51 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 11 Sep 2014 13:51:22 +0000
(13:51 +0000)
bin/lib.sh
patch
|
blob
|
history
diff --git
a/bin/lib.sh
b/bin/lib.sh
index
7397971
..
074a6a5
100755
(executable)
--- a/
bin/lib.sh
+++ b/
bin/lib.sh
@@
-3,6
+3,7
@@
sudo modprobe 8021q
sudo vconfig add eth0 63
sudo ifconfig eth0.63 10.60.4.9 netmask 255.255.252.0 up
+sudo iptables -t nat -A POSTROUTING -s 10.60.4.9/22 -o eth0 -j MASQUERADE
sudo ifconfig virtual 172.16.10.1 netmask 255.255.255.0 up
sudo iptables -t nat -A POSTROUTING -s 172.16.10.1/24 -o eth0 -j MASQUERADE