공유기 성능에 따라 VPN 통신속도 1MB/s 정도로 제한되기도 한다고

[링크 : https://www.clien.net/service/board/kin/10024149]


PPTP설정시

1723/all

47/gre 설정이 되어야 한다는데

GRE는 머지?

[링크 : https://livingmethod.wordpress.com/2015/03/19/iptime-공유기에서-내부-pptp서버-운영하기/]


GRE 메카니즘을 쓰는데 프로토콜로서 정해지는게 아닌거 같은데 머지?

PPTP uses an enhanced GRE (Generic Routing Encapsulation) mechanism to provide a flow- and congestion-controlled encapsulated datagram service for carrying PPP packets. 

[링크 : https://tools.ietf.org/html/rfc2637]


+

일단 중요한건 이게 아니라..

설정이 잘못된건지 모르겠지만

VPN을 통해서 접속하고 포트 포워딩을 통해 80번 포트나 22번 포트를 돌려줘도 외부에서 접속이 되지 않는다.

접속 설정 문제인지, iptime VPN의 제한인진 확인필요



+

2018.05.14

EFM에 문의해보니 원격지 게이트웨이 문제인 것 같다고.

[링크 : http://iptime.com/iptime/?page_id=174&nType=...=]


다시 설정해서 route 목록을 확인해봐야겠다.

Routing

Once you have connected to your VPN, you should be able to interact with anything available on the VPN server. To access anything on the remote network, you need to add a new route to your routing table.


Note: Depending on your configuration, you may need to re-add the routing information every time you connect to your VPN.

For more information on how to add routes, you can read this article which has many more examples: PPTP Routing Howto


Split Tunneling

Packets with a destination of your VPN's network should be routed through the VPN interface (usually ppp0). To do this, you create the route:


# ip route add 192.168.10.0/24 dev ppp0

This will route all the traffic with a destination of 192.168.10.* through your VPN's interface, (ppp0).


Route All Traffic

It may be desirable to route all traffic through your VPN connection. You can do this by running:


# ip route add default dev ppp0 

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


+

버전이 낮아서 버그가 있다 보니 그런건가..

100일 정도 리부팅 안하고 써서 맛이 간건가..

일단 한번 접속하고 끊으면 안 붙는 문제는 수정 된것 같으나

default remote gateway 문제인지 포트포워딩으로 접속이 안된다.

$ route

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

default         192.168.10.1    0.0.0.0         UG    100    0        0 eth0

125.177.70.133  192.168.10.1    255.255.255.255 UGH   0      0        0 eth0

link-local      *               255.255.0.0     U     1000   0        0 eth0

192.168.10.0    *               255.255.255.0   U     100    0        0 eth0

192.168.219.1   *               255.255.255.255 UH    0      0        0 ppp0


$ sudo poff SARANG


$ route

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

default         192.168.10.1    0.0.0.0         UG    100    0        0 eth0

125.177.70.133  192.168.10.1    255.255.255.255 UGH   0      0        0 eth0

link-local      *               255.255.0.0     U     1000   0        0 eth0

192.168.10.0    *               255.255.255.0   U     100    0        0 eth0 


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

VPN / 웹서버 설정  (0) 2018.05.14
rpi vpn client 설치 및 설정!  (0) 2018.05.12
Posted by 구차니

실은 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 구차니