summaryrefslogtreecommitdiff
path: root/README.standalone
blob: da7e4da46ee34b5fea9fbaac2fc493e5ff3636e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
        ============================================

                README for TCOS Standalone mode

        ============================================


1.- Security

  If you activate standalone mode you will expose 8998 port
  to anybody, if your network is untrusted please block all uncomming
  connections to these ports, (with iptables for example)

  For example if your server (when tcosmonitor gui runs) is 192.168.0.254:

   iptables -A INPUT -p tcp -s 192.168.0.254 --destination-port 8998 --syn -j ACCEPT
   iptables -A INPUT -p tcp -s 0/0 -d 0/0 --destination-port 8998 --syn -j DROP

 You can add this rules to your firewall or put into /etc/rc.local

2.- Configure user and password

  It's posible to work with standard *nix auth but for better security it's
  recomended to use a standalone autentication.

  In standalone host make this:

  # update-tcospasswd

    Arquitecture to update password:

     * TCOS
     * STANDALONE
              : STANDALONE
    Username (usually root): root
   TCOS Password: 
   I will write this file:
     /etc/tcospasswd
          Continue? [Y/n] Y


  In TcosMonitor you will need to put same user and password than here.

3.- Activate

  Change TCOS_STANDALONE_START=1

4.- Search for hosts.

  In TcosMonitor you need to configure discover method with ping 
  (netstat don't work)

  You can make a small trick to get a standalone host with netstat:


  #!/bin/sh

  while [ 1 ]; do
    telnet SERVER_IP 6000
  done 

  Put this script at user session start.