/[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

Annotation of /bin/lib.sh

Parent Directory Parent Directory | Revision Log Revision Log


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

1 dpavlin 437 #!/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 dpavlin 571 sudo iptables -t nat -A POSTROUTING -s 10.60.4.9/22 -o eth0 -j MASQUERADE
7 dpavlin 454
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 dpavlin 437 exec sudo ./bin/start.sh

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26