/[pxelator]/bin/lib.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /bin/lib.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 571 - (show annotations)
Thu Sep 11 13:51:22 2014 UTC (9 years, 6 months ago) by dpavlin
File MIME type: application/x-sh
File size: 352 byte(s)
masquarade 10.60.4.x network

1 #!/bin/sh -x
2
3 sudo modprobe 8021q
4 sudo vconfig add eth0 63
5 sudo ifconfig eth0.63 10.60.4.9 netmask 255.255.252.0 up
6 sudo iptables -t nat -A POSTROUTING -s 10.60.4.9/22 -o eth0 -j MASQUERADE
7
8 sudo ifconfig virtual 172.16.10.1 netmask 255.255.255.0 up
9 sudo iptables -t nat -A POSTROUTING -s 172.16.10.1/24 -o eth0 -j MASQUERADE
10
11 exec sudo ./bin/start.sh

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26