실은 odroid에 한거임 ㅋㅋㅋ

$ sudo apt-get install openvpn 

인 줄 알았는데 굳이 이거 아니어도 되는건가?


아래는 좀 다시 내용을 봐야 할 듯..

$ sudo apt-get install pptp-linux 

[링크 : https://prosindo.com/blog/2015/08/24/vpn-pptp-client-on-raspberry-pi/]

+

2018.05.14

라즈베리에서 설치해보니 위에 패키지를 깔면 된다.

$ sudo apt-get install pptp-linux

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following extra packages will be installed:

  ppp

The following NEW packages will be installed:

  ppp pptp-linux

0 upgraded, 2 newly installed, 0 to remove and 10 not upgraded.

Need to get 358 kB of archives.

After this operation, 859 kB of additional disk space will be used.

Do you want to continue? [Y/n]

+


$ sudo pptpsetup --create MYCONNECTION --server vpn.ourcompany.com --domain DOMAINNAME --username myname --password ******* --encrypt --start 

[링크 : https://www.raspberrypi.org/forums/viewtopic.php?t=123022]


+

주소와 계정은 임의로 변조함

$ sudo pptpsetup --create TUNN --server vpntest.minimonk.net --username pi --password raspberrypi --encrypt --start

Using interface ppp0

Connect: ppp0 <--> /dev/pts/9

CHAP authentication succeeded

MPPE 128-bit stateless compression enabled

local  IP address 192.168.219.205

remote IP address 192.168.219.1 


원격으로 접속해서 크롬으로 접속하다 보니 영어로 나옴.. -_-a

아무튼 VPN 상태에서 Connected로 뜸!!


전혀 다른 아이피와 전혀 다른 NIC으로 접속이 됨

$ ifconfig

eth0      Link encap:Ethernet  HWaddr 3a:02:dd:--:--:--

          inet addr:192.168.10.83  Bcast:192.168.10.255  Mask:255.255.255.0

          inet6 addr: fe80::3802:ddff:fe--:----/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:27646 errors:0 dropped:0 overruns:0 frame:0

          TX packets:12819 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:35345850 (35.3 MB)  TX bytes:1348771 (1.3 MB)


lo        Link encap:Local Loopback

          inet addr:127.0.0.1  Mask:255.0.0.0

          inet6 addr: ::1/128 Scope:Host

          UP LOOPBACK RUNNING  MTU:65536  Metric:1

          RX packets:228 errors:0 dropped:0 overruns:0 frame:0

          TX packets:228 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:23139 (23.1 KB)  TX bytes:23139 (23.1 KB)


ppp0      Link encap:Point-to-Point Protocol

          inet addr:192.168.219.205  P-t-P:192.168.219.1  Mask:255.255.255.255

          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1496  Metric:1

          RX packets:7 errors:0 dropped:0 overruns:0 frame:0

          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:3

          RX bytes:70 (70.0 B)  TX bytes:76 (76.0 B) 


$ ping 192.168.219.1

PING 192.168.219.1 (192.168.219.1) 56(84) bytes of data.

64 bytes from 192.168.219.1: icmp_seq=1 ttl=64 time=6.53 ms

64 bytes from 192.168.219.1: icmp_seq=2 ttl=64 time=7.12 ms

64 bytes from 192.168.219.1: icmp_seq=3 ttl=64 time=6.41 ms

^C

--- 192.168.219.1 ping statistics ---

3 packets transmitted, 3 received, 0% packet loss, time 2002ms

rtt min/avg/max/mdev = 6.417/6.693/7.129/0.325 ms 


$ ping 192.168.10.1

PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data.

64 bytes from 192.168.10.1: icmp_seq=1 ttl=64 time=0.774 ms

64 bytes from 192.168.10.1: icmp_seq=2 ttl=64 time=0.892 ms

^C

--- 192.168.10.1 ping statistics ---

2 packets transmitted, 2 received, 0% packet loss, time 999ms

rtt min/avg/max/mdev = 0.774/0.833/0.892/0.059 ms


그런데.. 80번 포트 포워딩 해서 접속해보려고 하는데 이건 안되네..


+

$ pptpsetup --help

pptpsetup --create <TUNNEL> --server <SERVER> [--domain <DOMAIN>]

          --username <USERNAME> [--password <PASSWORD>]

          [--encrypt] [--start]


pptpsetup --delete <TUNNEL>


Options:


* the name you wish to use to refer to the tunnel (you choose it),

* the IP address or host name of the server,

* the authentication domain name (optional),

* the username you are to use,

* the password you are to use,

* whether encryption is required,

* whether to start the connection after configuration.


pptpsetup - Point-to-Point Tunneling Protocol setup


Copyright (C) 2006 Nelson Ferraz


pptpsetup comes with ABSOLUTELY NO WARRANTY; for details see source.

This is free software, and you are welcome to redistribute it

under certain conditions; see source for details. 


+

2018.05.14

터널 설정은 위에서 한 대로 pptpsetup을 이용하면되고

접속은

$ sudo pon TUNN 


+

접속 끊기는

$ sudo poff TUNN

[링크 : https://wiki.archlinux.org/index.php/PPTP_Client]


이상하게 접속이 안되는 경우가 있는데, 일단은 SD 메모리 불량으로 EXT 파일 경고가 뜨는거 봐서는

시스템이 엉겨서 그런 듯..

$ sudo pptpsetup --create TUNN ...

Using interface ppp0

Connect: ppp0 <--> /dev/pts/9

Modem hangup

Connection terminated. 


Ubuntu 14.04 에서는 커널 모듈 문제로 발생하는 경우도 있는 듯

[링크 : https://askubuntu.com/questions/269399/failed-to-connect-to-pptp-vpn-server-on-ubuntu]


+

접속 로그 보는 방법

# pon <TUNNEL> debug dump logfd 2 nodetach 

[링크 : https://wiki.archlinux.org/index.php/PPTP_Client]


해보니까.. debug랑 nodetach만 해도 된다.

'프로그램 사용 > VPN(PPTP)' 카테고리의 다른 글

VPN / 웹서버 설정  (0) 2018.05.14
iptime vpn 제약?  (0) 2018.05.12
Posted by 구차니

좀 열심히 달리려고 했떠니 길을 못 찾겠네



해골 머리로 볼링하는 느낌?


잠시의 핀볼놀이(?)가 끝나고 나서는 다시 앨리스로!


먼가.. 베르세르크게 나오는 그 악당 같아지는 느낌? 근데 얘도 피해자겠지?


이쪽이 덤인줄 알고 왔더니 메인 통로.. 난 왜 찍기를 해도 반대로 찍을까.. ㅠㅠ


물주전자 와 토끼 폭탄을 이용하는게 조금 익숙해져서 인지 그나마 쉽게 깬다.


설마 저거 인육은 아니겠지..


800개가 넘었으니 이제 마지막 업그레이드!


이제 4타를 하는데 4타 끝나고 딜레이 없이 무한 난도질이 가능해진 느낌 ㄷㄷ


엥? 뜬금없는 안경쓴 돼지?

통 속의 뇌인가?


먼가 설마 내가 상상하는 그건 아니겠지...


한번 실패하고 죽을떄 찰칵


좀 더 멀리 빠르게 와서 성공! 토막난채로 박제된 비둘기라... 위에서 다리만 사람인 그 비둘기와는 무슨 연관일까?


보너스 스테이지 인줄 알았는데 또 메인스토리.. ㄷㄷ

천장이 막 무너지면서 떨어지는지라 마음이 조마조마


망할 저 놈도 이제 익숙해져서

내리짂는 순간을 노려서 등짝을 기관총으로 갈겨대니


피통 + 이빨 셔틀일 뿐이지 ㅋㅋ


다음 스테이지로 가즈아~


원래의 세계로 컴백


어쩌다 보이는 비밀 스테이지


삐에로 였나? 얘랑 벌떼가 나타나는데 살아 남는거니까 열심히 도망다니면 끝


아으 길 잃어서 진행 불가..

느낌으로는 타이밍 빠르게 팍팍 올라와서 저 뒤에 이빨이 보이는 곳으로 가야 할 거 같은데..

'게임 > 앨리스 매드니스 리턴즈' 카테고리의 다른 글

앨리스 매드니스 리턴즈 끝!  (4) 2018.05.19
앨리스 매드니스 리턴즈 특전의상..  (0) 2018.05.08
일요일의 앨리스  (0) 2018.05.06
토요일의 앨리스  (0) 2018.05.05
일요일의 앨리스  (2) 2018.04.29
Posted by 구차니

신청하려고 은행가니 ㄴㄴ

전화해서 물어보니


알뜰폰 x

유선 인터넷 x

lte egg x


아니 되는게 머야 싶어서 신청안함

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

지방출장?  (2) 2018.06.07
피곤함..  (0) 2018.05.31
멘탈 와사삭  (2) 2018.05.03
어제 장거리 외근... 기아 레이 밴  (0) 2018.05.01
침 넘기기 힘들어서 어제 약을 사러 갔던 썰  (4) 2018.04.26
Posted by 구차니

웹서버 구축하고

iptime의 vpn서버 에 붙여서

내부 아이피로 연결 후

공유기에서포트 포워딩하면 되는걸려나?


+

2018.05.12 


음.. 일반 패키지는 아니고 빌드해야 하나?

[링크 : https://gist.github.com/superjamie/ac55b6d2c080582a3e64]

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

ssh remote port forwarding  (0) 2019.01.28
reverse SSH  (0) 2018.05.14
scp: ambiguous target 에러  (0) 2016.09.21
sshpass를 이용한 scp 암호 자동 입력  (0) 2016.09.19
ssh X11 forwarding 속도 향상  (0) 2015.09.24
Posted by 구차니
embeded/raspberry pi2018. 5. 11. 17:51

비얌 만세.. ㄷㄷ


Arduino에 firmata 펌웨어 올리고

아두이노와 라즈베리는 시리얼을 통해서 통신을 함


[링크 : https://raspberrypi-aa.github.io/session3/firmata.html]

'embeded > raspberry pi' 카테고리의 다른 글

라즈베리 2B + waveshare 35a + MAME 0.182  (0) 2018.05.18
odroid u3 headless setup중 문제..  (0) 2018.05.14
라즈베리 2B 효용성에 대해서...  (2) 2018.05.09
rpi 3b PMIC  (0) 2018.04.23
rpi img 생성하기  (0) 2018.04.18
Posted by 구차니
Microsoft/Windows2018. 5. 11. 11:43

미묘하게 두개를 비교해보면 순서가 다른데

이유를 찾아 보니... 이런 망할

그러니까 결론은.. 콘솔창에서 탐색기랑 같은 순서로 볼 방법이 없는건가?

(별도의 dir 대체 프로그램을 StrCmpLogicalW를 쓰지 않고서는?)


Windows Explorer uses a special sorting function, StrCmpLogicalW, which is not used by cmd.exe, hence the differences in the output. You could write your own sorting program with it, though.

You might also be interested in Michael Kaplan's entries on this subject (from Raymond Chen's suggestion box). 

[링크 : https://stackoverflow.com/questions/242913/windows-dir-command-order-by-name-and-something]

'Microsoft > Windows' 카테고리의 다른 글

win10 pe 와 rufus  (0) 2018.06.13
ntfs $Extend  (0) 2018.05.29
자소가 분리되는 문제 NFC/NFD  (0) 2018.03.23
윈도우 콘솔에서 프린터로 출력하기  (0) 2018.03.08
윈도우 7 서비스 팩 2(win7 sp2)  (0) 2018.03.07
Posted by 구차니

일단 공짜는 언제나 옳다!!


[링크 : https://www.humblebundle.com/store/the-flame-in-the-flood]

Posted by 구차니

첫애 체험학습 다녀온다고 정신없고

다녀와서는 놀이터에서 논다고 추격전 벌여서 정신없고

저녁을 먹자고 학부모들과 이야기 하면서

삼겹살 파티 하면서 정신없고 -ㅁ-


바쁘다 ㅠㅠ

Posted by 구차니
개소리 왈왈/독서2018. 5. 9. 17:47

읽은진 좀 되었는데 늦게 쓰네

아이에게 윽박지르지 말고 참고 참고 참고 또 참고 인내하고

납득을 시키고 설명하라는 아내의 말과 다를게 없다.


결론은.. 부모의 화는

애가 몰라서 그런거다 라던가

애가 인지를 못한거지 잘못이 아니다 라고 넘겨야 한다는거


忍忍忍忍忍忍忍忍忍忍


이 답이었나 -ㅁ-!



[링크 : http://www.kyobobook.co.kr/product/detailViewKor.laf?barcode=9791187743002]

Posted by 구차니

코드에 주석이 많아서 보기 귀찮은 지라


1. 찾기 창에서 Mark로 간다음 책갈피 표시

2. 찾기-책깔피-모든책깔피삭제

[링크 : https://stackoverflow.com/.../is-there-a-way-to-delete-all-comments-in-a-file-using-notepad]



정규표현식 쓰는것도 있는데 조금 번거로워도 이게 기억하기 쉬운듯하다.

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

notepad++ multi line edit  (0) 2019.12.30
notepad++ for ubuntu?  (0) 2019.12.21
notepad++ 특정 라인 열도록 실행하기  (0) 2018.01.02
notepad++ 따옴표 자동완성 끄기  (0) 2017.12.10
notepad++ 줄순서 뒤바꾸기  (2) 2017.11.22
Posted by 구차니