stg-11111111
立即下载
资源介绍:
stg-11111111
1. On the GE800 router the following is required:
1.1 The /tmp/log directory (writable)
1.2 The /tmp/wtfast directory (writable, needed for flash storage). If this location changes the entry on the gpnc_linux (deviceDataHomeDir) has to be updated to reflect the change
2. Move/copy gpnc binary and gpnc_linux.conf file to the location where it will be run (i.e. /usr/bin)
2.1.1 Execute the following on a shell on the router: chmod 755 /usr/bin/gpnc
2.1.2 there also should be the configuration file gpnc_linux.conf on /usr/bin
3. Execute gpnc binary
3.1. Current functionality allows to use custom commands substitution for iptables and ipset. Variables for that purpose are: IPTABLES_GPNC and IPSET_GPNC
3.1.1. They can be defined in the environment *prior/before* the gpnc executable runs
3.1.2. They can also be used as part of the launch command for the application (see below 3.3)
3.1.3. **** NOTE ****: if the IPTABLES_GPNC and IPSET_GPNC variables are not set then the application will default to use iptables and ipset
3.2. In previous updates the instructions on how to run the run the binary were as follows:
(ulimit -v 131072; GOMEMLIMIT=32MiB GOGC=100 /usr/bin/gpnc -l 4 -sl=0 -logdir /tmp/log)
3.3. IMPORTANT: for production launch either of the following two are acceptable, the first one is the preferred choice:
#This will encrypt the logs as well as the user file
#Modified files for that purpose have been provided -etc_config_gpnc_option_1.txt and usr_bin_gpnc_start_option_1.txt
#Those files correspond to /etc/config/gpnc and /usr/bin/gpnc_start respectively
#using the IPTABLES_GPNC and IPSET_GPNC variables on the command line
(ulimit -v 131072; GOMEMLIMIT=32MiB GOGC=100 IPTABLES_GPNC=<> IPSET_GPNC=<> /usr/bin/gpnc -l 4 -logdir /tmp/log)
#using the application assuming the IPTABLES_GPNC and IPSET_GPNC variables are set already on the environment (or in the case they do not exist)
(ulimit -v 131072; GOMEMLIMIT=32MiB GOGC=100 /usr/bin/gpnc -l 4 -logdir /tmp/log)
#This will encrypt the logs as well as the user file with the only modificatio being on /etc/config/gpnc ( etc_config_gpnc_option_2.txt file)
#This is the least desirable option
#Modified etc_config_gpnc_option_2.txt has been provided
#The file correspond to /etc/config/gpnc
#using the IPTABLES_GPNC and IPSET_GPNC variables on the command line
(ulimit -v 131072; GOMEMLIMIT=32MiB GOGC=100 IPTABLES_GPNC=<> IPSET_GPNC=<> /usr/bin/gpnc -l 4 -sl=1 -eu=1 -logdir /tmp/log)
#using the application assuming the IPTABLES_GPNC and IPSET_GPNC variables are set already on the environment (or in the case they do not exist)
(ulimit -v 131072; GOMEMLIMIT=32MiB GOGC=100 /usr/bin/gpnc -l 4 -sl=1 -eu=1 -logdir /tmp/log)
4. in order to authorize the device run the following on a shell on the device (step 5 has to have to gpnc running)
echo -e "call getCode"|nc 127.0.0.1 9999
5. Enter the code from 4) on the companion app
6. The device is authorized and games can be run
7. To terminate the program is Ctrl-C
The logs can be found in /tmp/log (wtfast_*.log files)