Notice
		                                        
										
                                    
                                        
                                    
                                        Recent Posts
                                        
                                    
                                        
                                    
                                        Recent Comments
                                        
                                    
                                        
                                    
                                    
                                | 일 | 월 | 화 | 수 | 목 | 금 | 토 | 
|---|---|---|---|---|---|---|
| 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 | 
                                        Tags
                                        
                                    
                                        
                                    - ecma
- debugging
- error
- Analysis
- Ransomware
- x64
- Injection
- h5py.File
- idb2pat
- svn update
- Python
- data distribution
- ida pro
- NumPy Unicode Error
- hex-rays
- javascript
- Rat
- 포인터 매핑
- mock.patch
- malware
- idapro
- idapython
- TensorFlow
- why error
- MySQL
- ida
- pytest
- commandline
- error fix
- open office xml
                                        Archives
                                        
                                    
                                        
                                    - Today
- Total
13 Security Lab
[SETUP] Seesaw / Google Load Balancing Open SW / Google GO based 본문
                        Computer Science/linux - wiki
                        
							
                       
                    [SETUP] Seesaw / Google Load Balancing Open SW / Google GO based
Maj0r Tom 2016. 4. 4. 22:00Seesaw v2 is a Linux Virtual Server (LVS) based load balancing platform.
[Load balancing]
[Reference]GO 공식 사이트 : https://golang.org/doc/installGO 설치 한국블로그 : http://blog.iolate.kr/207
[SETUP]
SEESAW_BIN="/usr/local/go/bin"
SEESAW_ETC="/etc/seesaw"
SEESAW_LOG="/var/log/seesaw"
install -d "${SEESAW_BIN}" "${SEESAW_ETC}" "${SEESAW_LOG}"install "${GOPATH}/bin/seesaw_cli" /usr/bin/seesaw for component in {ecu,engine,ha,healthcheck,ncc,watchdog}; do install "${GOPATH}/bin/seesaw_${component}" "${SEESAW_BIN}" done install "etc/init/seesaw_watchdog.conf" "/etc/init"
install "etc/seesaw/watchdog.cfg" "${SEESAW_ETC}" # Enable CAP_NET_RAW for seesaw binaries that require raw sockets.
/sbin/setcap cap_net_raw+ep "/usr/local/go/src/github.com/google/seesaw/binaries/seesaw_ha"/sbin/setcap cap_net_raw+ep "/usr/local/go/src/github.com/google/seesaw/binaries/seesaw_healthcheck"
[!trouble shooting]
Failed to set capabilities on file `/usr/local/go/src/github.com/google/seesaw/binaries/seesaw_ha' (Invalid argument)
The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file
<!Solution (from Stack-Overflow)>
sudo /sbin/setcap cap_net_raw+ep $(readlink -f /usr/local/go/src/github.com/google/seesaw/binaries/seesaw_ha)
<Solution (Code13)>
error message said "The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file"
위 경로의 seesaw_ha, seesaw_healthcheck 는 파일이 아닌 디렉토리 -> 실제 설정 적용 가능한 ELF 파일은 "/usr/local/go/bin" 에 있음...
>> SEESAW_BIN=/usr/local/go/bin
>> /sbin/setcap cap_net_raw+ep "${SEESAW_BIN}/seesaw_ha">> /sbin/setcap cap_net_raw+ep "${SEESAW_BIN}/seesaw_healthcheck"
[!trouble shooting2][go가 설치된 위치에서] + 만약에 패키지의 /usr/bin/go 와 
수동설치 된 /usr/local/go/bin/go 가 겹치는지 확인한다
[!trouble shooting3]
Seesaw 프로젝트를 /usr/local/go/src/github.com/google 아래로 옮겨야 함.
옮긴 후 Full Path 1 : /usr/local/go/src/github.com/google/seesaw$
옮긴 후 Full Path 1 : /usr/local/go/src/github.com/google/seesaw$
Full Path 1 아래 seesaw 파일 들 : 
./binaries/seesaw_ncc
./binaries/seesaw_healthcheck
./binaries/seesaw_cli
./binaries/seesaw_watchdog
./binaries/seesaw_ecu
./binaries/seesaw_ha
./binaries/seesaw_engine
./etc/init/seesaw_watchdog.conf
./binaries/seesaw_healthcheck
./binaries/seesaw_cli
./binaries/seesaw_watchdog
./binaries/seesaw_ecu
./binaries/seesaw_ha
./binaries/seesaw_engine
./etc/init/seesaw_watchdog.conf
                          Comments
                        
                    
                
            
                
            
				
				
				
				
                
            