X-Git-Url: http://git.hcoop.net/hcoop/portal.git/blobdiff_plain/9a4c122a7acf19f4166874a0541eefda51316ee0..e4964ef9036ec719d052082b34af0deb0db89382:/ip.mlt diff --git a/ip.mlt b/ip.mlt index b34929f..daa6922 100644 --- a/ip.mlt +++ b/ip.mlt @@ -3,7 +3,7 @@ val admin = Group.inGroupName "server"; val nodeNum = case $"node" of - "" => 2 + "" => 4 | node => Web.stoi node; if $"new" <> "" then @@ -14,7 +14,7 @@ if $"new" <> "" then Yes, I want to request that. <% elseif $"req" <> "" then - val id = Ip.add {usr = Init.getUserId(), node = nodeNum, data = $"req", msg = $"msg"}; + val id = Ip.add {usr = Init.getUserId (), node = nodeNum, data = $"req", msg = $"msg"}; if not (Ip.notifyNew id) then %>

Error sending e-mail notification

<% end @@ -28,7 +28,7 @@ elseif $"cmd" = "open" then


- + @@ -38,7 +38,22 @@ elseif $"cmd" = "open" then
[Modify][Delete]
- To install, run: tell adamc what text to put here. + To install:
    +
  1. Choose a new IP address 69.90.123.NNN from those available.
  2. +
  3. Add new entry to /etc/network/interfaces on mire, where N is some incremented number. +
    auto eth0:N
    +iface eth0:N inet static
    +        address 69.90.123.NNN
    +        netmask 255.255.255.224
    +        network 69.90.123.64
    +
  4. +
  5. Edit /etc/apache2/ports.conf and add the following lines: +
    Listen 69.90.123.NNN:80
    +Listen 69.90.123.NNN:443
  6. +
  7. Run ifup eth0:N. +
  8. Restart Apache with /etc/init.d/apache2 restart.
  9. +
  10. Run domtool-admin grant <% name %> ip 69.90.123.NNN +
<% end %> <% end @@ -50,7 +65,7 @@ elseif $"cmd" = "list" then


By: <% name %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
Node: <% Web.html (Init.nodeName (#node req)) %>
Port: <% #data req %>
Reason: <% Web.html (#msg req) %>
- + @@ -75,7 +90,7 @@ elseif $"mod" <> "" then
By: <% name %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
Node: <% Web.html (Init.nodeName (#node req)) %>
Port: <% #data req %>
Reason: <% Web.html (#msg req) %>
- +
Requestor: <% #name user %>
Time: <% #stamp req %>
Time: <% #stamp req %> (<% Util.diffFromNow (#stamp req) %> ago)
Node: