본문 바로가기
AndroidOverLinux

udpxy 설치하기 (설치 이외에는 질문받지 않습니다.)

by 도정진 ㅋㅋ잠자 2018. 8. 7.

안녕하세요.


ASUS 공유기에 해당 기능이 들어있는 것으로 알고 있습니다.


혹시나 U5를 사용하시어 사용하신다면 아래와 같이 사용해 주시면 되겠습니다.


설치 방법에 대한 질문만 받고 그 이외의 응답은 없습니다.


참고하시길 바랍니다.




1. udpxy 설치하기


# 소스 받기

root@AOL-Debian:~# wget http://downloads.sourceforge.net/project/udpxy/udpxy/Chipmunk-1.0/udpxy.1.0.23-0-prod.tar.gz

--2018-08-07 16:52:50--  http://downloads.sourceforge.net/project/udpxy/udpxy/Chipmunk-1.0/udpxy.1.0.23-0-prod.tar.gz

Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.105.38.13

Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.105.38.13|:80... connected.

HTTP request sent, awaiting response... 302 Found

Location: https://jaist.dl.sourceforge.net/project/udpxy/udpxy/Chipmunk-1.0/udpxy.1.0.23-0-prod.tar.gz [following]

--2018-08-07 16:52:50--  https://jaist.dl.sourceforge.net/project/udpxy/udpxy/Chipmunk-1.0/udpxy.1.0.23-0-prod.tar.gz

Resolving jaist.dl.sourceforge.net (jaist.dl.sourceforge.net)... 150.65.7.130, 2001:df0:2ed:feed::feed

Connecting to jaist.dl.sourceforge.net (jaist.dl.sourceforge.net)|150.65.7.130|:443... connected.

HTTP request sent, awaiting response... 200 OK

Length: 79133 (77K) [application/x-gzip]

Saving to: ‘udpxy.1.0.23-0-prod.tar.gz’


udpxy.1.0.23-0-prod.tar.gz 100%[========================================>]  77.28K  --.-KB/s   in 0.07s  


2018-08-07 16:52:51 (1.01 MB/s) - ‘udpxy.1.0.23-0-prod.tar.gz’ saved [79133/79133]


# 소스 압축풀기

root@AOL-Debian:~# tar xf udpxy.1.0.23-0-prod.tar.gz 


# 소스 압축 푼 디렉터리로 이동

root@AOL-Debian:~# cd udpxy-1.0.23-0/


# 컴파일 명령 내리기

root@AOL-Debian:~/udpxy-1.0.23-0# make

-bash: make: command not found


# build-essential 패키지 설치하기

root@AOL-Debian:~/udpxy-1.0.23-0# apt-get install build-essential

Reading package lists... Done

Building dependency tree       

Reading state information... Done

The following extra packages will be installed:

  binutils cpp cpp-4.9 dpkg-dev fakeroot g++ g++-4.9 gcc gcc-4.9 libalgorithm-diff-perl

  libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan1 libatomic1 libc-dev-bin libc6-dev

  libcloog-isl4 libdpkg-perl libfakeroot libfile-fcntllock-perl libgcc-4.9-dev libisl10 libmpc3 libmpfr4

  libstdc++-4.9-dev libtimedate-perl libubsan0 linux-libc-dev make manpages-dev patch xz-utils

Suggested packages:

  binutils-doc cpp-doc gcc-4.9-locales debian-keyring gcc-4.9-doc libstdc++6-4.9-dbg gcc-multilib

  autoconf automake libtool flex bison gdb gcc-doc libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg

  libasan1-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libquadmath-dbg glibc-doc

  libstdc++-4.9-doc make-doc ed diffutils-doc

The following NEW packages will be installed:

  binutils build-essential cpp cpp-4.9 dpkg-dev fakeroot g++ g++-4.9 gcc gcc-4.9 libalgorithm-diff-perl

  libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan1 libatomic1 libc-dev-bin libc6-dev

  libcloog-isl4 libdpkg-perl libfakeroot libfile-fcntllock-perl libgcc-4.9-dev libisl10 libmpc3 libmpfr4

  libstdc++-4.9-dev libtimedate-perl libubsan0 linux-libc-dev make manpages-dev patch xz-utils

0 upgraded, 33 newly installed, 0 to remove and 4 not upgraded.

Need to get 35.2 MB of archives.

After this operation, 96.7 MB of additional disk space will be used.

Do you want to continue? [Y/n] 

Get:1 http://httpredir.debian.org/debian/ jessie/main libasan1 armhf 4.9.2-10+deb8u1 [168 kB]

Get:2 http://httpredir.debian.org/debian/ jessie/main libatomic1 armhf 4.9.2-10+deb8u1 [6,068 B]

Get:3 http://httpredir.debian.org/debian/ jessie/main libisl10 armhf 0.12.2-2 [338 kB]

Get:4 http://httpredir.debian.org/debian/ jessie/main libcloog-isl4 armhf 0.18.2-1+b2 [50.8 kB]

Get:5 http://httpredir.debian.org/debian/ jessie/main libmpfr4 armhf 3.1.2-2 [508 kB]

Get:6 http://httpredir.debian.org/debian/ jessie/main libubsan0 armhf 4.9.2-10+deb8u1 [69.5 kB]

Get:7 http://httpredir.debian.org/debian/ jessie/main libmpc3 armhf 1.0.2-1 [31.4 kB]

Get:8 http://httpredir.debian.org/debian/ jessie/main patch armhf 2.7.5-1+deb8u1 [101 kB]

Get:9 http://httpredir.debian.org/debian/ jessie/main xz-utils armhf 5.1.1alpha+20120614-2+b3 [218 kB]

Get:10 http://httpredir.debian.org/debian/ jessie/main binutils armhf 2.25-5+deb8u1 [3,537 kB]

Get:11 http://httpredir.debian.org/debian/ jessie/main libc-dev-bin armhf 2.19-18+deb8u10 [232 kB]

Get:12 http://httpredir.debian.org/debian/ jessie/main linux-libc-dev armhf 3.16.56-1+deb8u1 [1,077 kB]

Get:13 http://httpredir.debian.org/debian/ jessie/main libc6-dev armhf 2.19-18+deb8u10 [1,750 kB]

Get:14 http://httpredir.debian.org/debian/ jessie/main cpp-4.9 armhf 4.9.2-10+deb8u1 [4,220 kB]

Get:15 http://httpredir.debian.org/debian/ jessie/main cpp armhf 4:4.9.2-2 [17.4 kB]                     

Get:16 http://httpredir.debian.org/debian/ jessie/main libgcc-4.9-dev armhf 4.9.2-10+deb8u1 [358 kB]     

Get:17 http://httpredir.debian.org/debian/ jessie/main gcc-4.9 armhf 4.9.2-10+deb8u1 [4,421 kB]          

Get:18 http://httpredir.debian.org/debian/ jessie/main gcc armhf 4:4.9.2-2 [5,138 B]                     

Get:19 http://httpredir.debian.org/debian/ jessie/main libstdc++-4.9-dev armhf 4.9.2-10+deb8u1 [1,129 kB]

Get:20 http://httpredir.debian.org/debian/ jessie/main g++-4.9 armhf 4.9.2-10+deb8u1 [11.8 MB]           

Get:21 http://httpredir.debian.org/debian/ jessie/main g++ armhf 4:4.9.2-2 [1,510 B]                     

Get:22 http://httpredir.debian.org/debian/ jessie/main make armhf 4.0-8.1 [335 kB]                       

Get:23 http://httpredir.debian.org/debian/ jessie/main libtimedate-perl all 2.3000-2 [42.2 kB]           

Get:24 http://httpredir.debian.org/debian/ jessie/main libdpkg-perl all 1.17.27 [1,075 kB]               

Get:25 http://httpredir.debian.org/debian/ jessie/main dpkg-dev all 1.17.27 [1,548 kB]                   

Get:26 http://httpredir.debian.org/debian/ jessie/main build-essential armhf 11.7 [6,934 B]              

Get:27 http://httpredir.debian.org/debian/ jessie/main libfakeroot armhf 1.20.2-1 [40.5 kB]              

Get:28 http://httpredir.debian.org/debian/ jessie/main fakeroot armhf 1.20.2-1 [83.5 kB]                 

Get:29 http://httpredir.debian.org/debian/ jessie/main libalgorithm-diff-perl all 1.19.02-3 [51.7 kB]    

Get:30 http://httpredir.debian.org/debian/ jessie/main libalgorithm-diff-xs-perl armhf 0.04-3+b1 [11.9 kB]

Get:31 http://httpredir.debian.org/debian/ jessie/main libalgorithm-merge-perl all 0.08-2 [13.5 kB]      

Get:32 http://httpredir.debian.org/debian/ jessie/main libfile-fcntllock-perl armhf 0.22-1+b1 [36.1 kB]  

Get:33 http://httpredir.debian.org/debian/ jessie/main manpages-dev all 3.74-1 [1,865 kB]                

Fetched 35.2 MB in 12s (2,808 kB/s)                                                                      

Extracting templates from packages: 100%

Selecting previously unselected package libasan1:armhf.

(Reading database ... 24937 files and directories currently installed.)

Preparing to unpack .../libasan1_4.9.2-10+deb8u1_armhf.deb ...

Unpacking libasan1:armhf (4.9.2-10+deb8u1) ...

Selecting previously unselected package libatomic1:armhf.

Preparing to unpack .../libatomic1_4.9.2-10+deb8u1_armhf.deb ...

Unpacking libatomic1:armhf (4.9.2-10+deb8u1) ...

Selecting previously unselected package libisl10:armhf.

Preparing to unpack .../libisl10_0.12.2-2_armhf.deb ...

Unpacking libisl10:armhf (0.12.2-2) ...

Selecting previously unselected package libcloog-isl4:armhf.

Preparing to unpack .../libcloog-isl4_0.18.2-1+b2_armhf.deb ...

Unpacking libcloog-isl4:armhf (0.18.2-1+b2) ...

Selecting previously unselected package libmpfr4:armhf.

Preparing to unpack .../libmpfr4_3.1.2-2_armhf.deb ...

Unpacking libmpfr4:armhf (3.1.2-2) ...

Selecting previously unselected package libubsan0:armhf.

Preparing to unpack .../libubsan0_4.9.2-10+deb8u1_armhf.deb ...

Unpacking libubsan0:armhf (4.9.2-10+deb8u1) ...

Selecting previously unselected package libmpc3:armhf.

Preparing to unpack .../libmpc3_1.0.2-1_armhf.deb ...

Unpacking libmpc3:armhf (1.0.2-1) ...

Selecting previously unselected package patch.

Preparing to unpack .../patch_2.7.5-1+deb8u1_armhf.deb ...

Unpacking patch (2.7.5-1+deb8u1) ...

Selecting previously unselected package xz-utils.

Preparing to unpack .../xz-utils_5.1.1alpha+20120614-2+b3_armhf.deb ...

Unpacking xz-utils (5.1.1alpha+20120614-2+b3) ...

Selecting previously unselected package binutils.

Preparing to unpack .../binutils_2.25-5+deb8u1_armhf.deb ...

Unpacking binutils (2.25-5+deb8u1) ...

Selecting previously unselected package libc-dev-bin.

Preparing to unpack .../libc-dev-bin_2.19-18+deb8u10_armhf.deb ...

Unpacking libc-dev-bin (2.19-18+deb8u10) ...

Selecting previously unselected package linux-libc-dev:armhf.

Preparing to unpack .../linux-libc-dev_3.16.56-1+deb8u1_armhf.deb ...

Unpacking linux-libc-dev:armhf (3.16.56-1+deb8u1) ...

Selecting previously unselected package libc6-dev:armhf.

Preparing to unpack .../libc6-dev_2.19-18+deb8u10_armhf.deb ...

Unpacking libc6-dev:armhf (2.19-18+deb8u10) ...

Selecting previously unselected package cpp-4.9.

Preparing to unpack .../cpp-4.9_4.9.2-10+deb8u1_armhf.deb ...

Unpacking cpp-4.9 (4.9.2-10+deb8u1) ...

Selecting previously unselected package cpp.

Preparing to unpack .../cpp_4%3a4.9.2-2_armhf.deb ...

Unpacking cpp (4:4.9.2-2) ...

Selecting previously unselected package libgcc-4.9-dev:armhf.

Preparing to unpack .../libgcc-4.9-dev_4.9.2-10+deb8u1_armhf.deb ...

Unpacking libgcc-4.9-dev:armhf (4.9.2-10+deb8u1) ...

Selecting previously unselected package gcc-4.9.

Preparing to unpack .../gcc-4.9_4.9.2-10+deb8u1_armhf.deb ...

Unpacking gcc-4.9 (4.9.2-10+deb8u1) ...

Selecting previously unselected package gcc.

Preparing to unpack .../gcc_4%3a4.9.2-2_armhf.deb ...

Unpacking gcc (4:4.9.2-2) ...

Selecting previously unselected package libstdc++-4.9-dev:armhf.

Preparing to unpack .../libstdc++-4.9-dev_4.9.2-10+deb8u1_armhf.deb ...

Unpacking libstdc++-4.9-dev:armhf (4.9.2-10+deb8u1) ...

Selecting previously unselected package g++-4.9.

Preparing to unpack .../g++-4.9_4.9.2-10+deb8u1_armhf.deb ...

Unpacking g++-4.9 (4.9.2-10+deb8u1) ...

Selecting previously unselected package g++.

Preparing to unpack .../g++_4%3a4.9.2-2_armhf.deb ...

Unpacking g++ (4:4.9.2-2) ...

Selecting previously unselected package make.

Preparing to unpack .../make_4.0-8.1_armhf.deb ...

Unpacking make (4.0-8.1) ...

Selecting previously unselected package libtimedate-perl.

Preparing to unpack .../libtimedate-perl_2.3000-2_all.deb ...

Unpacking libtimedate-perl (2.3000-2) ...

Selecting previously unselected package libdpkg-perl.

Preparing to unpack .../libdpkg-perl_1.17.27_all.deb ...

Unpacking libdpkg-perl (1.17.27) ...

Selecting previously unselected package dpkg-dev.

Preparing to unpack .../dpkg-dev_1.17.27_all.deb ...

Unpacking dpkg-dev (1.17.27) ...

Selecting previously unselected package build-essential.

Preparing to unpack .../build-essential_11.7_armhf.deb ...

Unpacking build-essential (11.7) ...

Selecting previously unselected package libfakeroot:armhf.

Preparing to unpack .../libfakeroot_1.20.2-1_armhf.deb ...

Unpacking libfakeroot:armhf (1.20.2-1) ...

Selecting previously unselected package fakeroot.

Preparing to unpack .../fakeroot_1.20.2-1_armhf.deb ...

Unpacking fakeroot (1.20.2-1) ...

Selecting previously unselected package libalgorithm-diff-perl.

Preparing to unpack .../libalgorithm-diff-perl_1.19.02-3_all.deb ...

Unpacking libalgorithm-diff-perl (1.19.02-3) ...

Selecting previously unselected package libalgorithm-diff-xs-perl.

Preparing to unpack .../libalgorithm-diff-xs-perl_0.04-3+b1_armhf.deb ...

Unpacking libalgorithm-diff-xs-perl (0.04-3+b1) ...

Selecting previously unselected package libalgorithm-merge-perl.

Preparing to unpack .../libalgorithm-merge-perl_0.08-2_all.deb ...

Unpacking libalgorithm-merge-perl (0.08-2) ...

Selecting previously unselected package libfile-fcntllock-perl.

Preparing to unpack .../libfile-fcntllock-perl_0.22-1+b1_armhf.deb ...

Unpacking libfile-fcntllock-perl (0.22-1+b1) ...

Selecting previously unselected package manpages-dev.

Preparing to unpack .../manpages-dev_3.74-1_all.deb ...

Unpacking manpages-dev (3.74-1) ...

Processing triggers for man-db (2.7.0.2-5) ...

Setting up libasan1:armhf (4.9.2-10+deb8u1) ...

Setting up libatomic1:armhf (4.9.2-10+deb8u1) ...

Setting up libisl10:armhf (0.12.2-2) ...

Setting up libcloog-isl4:armhf (0.18.2-1+b2) ...

Setting up libmpfr4:armhf (3.1.2-2) ...

Setting up libubsan0:armhf (4.9.2-10+deb8u1) ...

Setting up libmpc3:armhf (1.0.2-1) ...

Setting up patch (2.7.5-1+deb8u1) ...

Setting up xz-utils (5.1.1alpha+20120614-2+b3) ...

update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode

Setting up binutils (2.25-5+deb8u1) ...

Setting up libc-dev-bin (2.19-18+deb8u10) ...

Setting up linux-libc-dev:armhf (3.16.56-1+deb8u1) ...

Setting up libc6-dev:armhf (2.19-18+deb8u10) ...

Setting up cpp-4.9 (4.9.2-10+deb8u1) ...

Setting up cpp (4:4.9.2-2) ...

Setting up libgcc-4.9-dev:armhf (4.9.2-10+deb8u1) ...

Setting up gcc-4.9 (4.9.2-10+deb8u1) ...

Setting up gcc (4:4.9.2-2) ...

Setting up libstdc++-4.9-dev:armhf (4.9.2-10+deb8u1) ...

Setting up g++-4.9 (4.9.2-10+deb8u1) ...

Setting up g++ (4:4.9.2-2) ...

update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode

Setting up make (4.0-8.1) ...

Setting up libtimedate-perl (2.3000-2) ...

Setting up libdpkg-perl (1.17.27) ...

Setting up dpkg-dev (1.17.27) ...

Setting up build-essential (11.7) ...

Setting up libfakeroot:armhf (1.20.2-1) ...

Setting up fakeroot (1.20.2-1) ...

update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode

Setting up libalgorithm-diff-perl (1.19.02-3) ...

Setting up libalgorithm-diff-xs-perl (0.04-3+b1) ...

Setting up libalgorithm-merge-perl (0.08-2) ...

Setting up libfile-fcntllock-perl (0.22-1+b1) ...

Setting up manpages-dev (3.74-1) ...

Processing triggers for libc-bin (2.19-18+deb8u10) ...


# 빌드하기

root@AOL-Debian:~/udpxy-1.0.23-0# make

cc -o util/mkdep util/mkdep.c

-rwxr-xr-x 1 root root 15108 Aug  7 16:58 util/mkdep

cc -W -Wall -Werror --pedantic -M udpxy.c sloop.c rparse.c util.c prbuf.c ifaddr.c ctx.c mkpg.c rtp.c uopt.c dpkt.c netop.c extrn.c main.c udpxrec.c > udpxy.dep

-e 

Making a [release] version (use 'debug' target as an alternative)


make[1]: Entering directory '/root/udpxy-1.0.23-0'

cc -W -Wall -Werror --pedantic  -DUDPXREC_MOD  -DNDEBUG -DTRACE_MODULE -c udpxy.c -o udpxy.o

cc -W -Wall -Werror --pedantic  -DUDPXREC_MOD  -DNDEBUG -DTRACE_MODULE -c sloop.c -o sloop.o

cc -W -Wall -Werror --pedantic  -DUDPXREC_MOD  -DNDEBUG -DTRACE_MODULE -c rparse.c -o rparse.o

cc -W -Wall -Werror --pedantic  -DUDPXREC_MOD  -DNDEBUG -DTRACE_MODULE -c util.c -o util.o

cc -W -Wall -Werror --pedantic  -DUDPXREC_MOD  -DNDEBUG -DTRACE_MODULE -c prbuf.c -o prbuf.o

cc -W -Wall -Werror --pedantic  -DUDPXREC_MOD  -DNDEBUG -DTRACE_MODULE -c ifaddr.c -o ifaddr.o

cc -W -Wall -Werror --pedantic  -DUDPXREC_MOD  -DNDEBUG -DTRACE_MODULE -c ctx.c -o ctx.o

cc -W -Wall -Werror --pedantic  -DUDPXREC_MOD  -DNDEBUG -DTRACE_MODULE -c mkpg.c -o mkpg.o

cc -W -Wall -Werror --pedantic  -DUDPXREC_MOD  -DNDEBUG -DTRACE_MODULE -c rtp.c -o rtp.o

cc -W -Wall -Werror --pedantic  -DUDPXREC_MOD  -DNDEBUG -DTRACE_MODULE -c uopt.c -o uopt.o

cc -W -Wall -Werror --pedantic  -DUDPXREC_MOD  -DNDEBUG -DTRACE_MODULE -c dpkt.c -o dpkt.o

cc -W -Wall -Werror --pedantic  -DUDPXREC_MOD  -DNDEBUG -DTRACE_MODULE -c netop.c -o netop.o

cc -W -Wall -Werror --pedantic  -DUDPXREC_MOD  -DNDEBUG -DTRACE_MODULE -c extrn.c -o extrn.o

cc -W -Wall -Werror --pedantic  -DUDPXREC_MOD  -DNDEBUG -DTRACE_MODULE -c main.c -o main.o

cc -W -Wall -Werror --pedantic  -DUDPXREC_MOD  -DNDEBUG -DTRACE_MODULE -c udpxrec.c -o udpxrec.o

cc -W -Wall -Werror --pedantic -DUDPXREC_MOD  -DNDEBUG -DTRACE_MODULE -o udpxy udpxy.o sloop.o rparse.o util.o prbuf.o ifaddr.o ctx.o mkpg.o rtp.o uopt.o dpkt.o netop.o extrn.o main.o udpxrec.o

-rwxr-xr-x 1 root root 90608 Aug  7 16:58 udpxy

ln -s udpxy udpxrec

make[1]: Leaving directory '/root/udpxy-1.0.23-0'


# 빌드된것 설치하기

root@AOL-Debian:~/udpxy-1.0.23-0# make install

lrwxrwxrwx 1 root staff    20 Aug  7 16:58 /usr/local/bin/udpxrec -> /usr/local/bin/udpxy

-rwxr-xr-x 1 root staff 90608 Aug  7 16:58 /usr/local/bin/udpxy

Installation of udpxy is complete

root@AOL-Debian:~/udpxy-1.0.23-0# 


설치가 끝났습니다.





2. 기본동작 시켜보기


root@AOL-Debian:~/udpxy-1.0.23-0# /usr/local/bin/udpxy -a eth0 -m eth0 -p 4022 -c 4


-a 는 신호를 내보낼 장치 -m 은 멀티캐스트를 받을 장치 -p 는 포트 설정 -c 는 동시 클라이언트 수를 의미합니다.


이렇게 설정하면 보안이 없는 상태로 구동이 되는 상태입니다.





3. 아이디 비번 걸기


아이디 비번은 아파치 서버 프록시기능으로 걸어볼 생각입니다.


# 아파치 웹서버를 설치합니다.

root@AOL-Debian:~# apt-get install apache2

Reading package lists... Done

Building dependency tree       

Reading state information... Done

apache2 is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.


# 프록시 관련 모듈을 활성화 합니다.
root@AOL-Debian:~# a2enmod proxy proxy_ajp proxy_http rewrite deflate headers proxy_balancer proxy_connect proxy_html
Enabling module proxy.
Considering dependency proxy for proxy_ajp:
Module proxy already enabled
Enabling module proxy_ajp.
Considering dependency proxy for proxy_http:
Module proxy already enabled
Enabling module proxy_http.
Enabling module rewrite.
Considering dependency filter for deflate:
Module filter already enabled
Module deflate already enabled
Enabling module headers.
Considering dependency proxy for proxy_balancer:
Module proxy already enabled
Considering dependency alias for proxy_balancer:
Module alias already enabled
Considering dependency slotmem_shm for proxy_balancer:
Enabling module slotmem_shm.
Enabling module proxy_balancer.
Considering dependency proxy for proxy_connect:
Module proxy already enabled
Enabling module proxy_connect.
Considering dependency proxy for proxy_html:
Module proxy already enabled
Enabling module proxy_html.
To activate the new configuration, you need to run:
  service apache2 restart

# 서버를 재시작 합니다.
root@AOL-Debian:~# service apache2 restart
[....] Restarting web server: apache2[Tue Aug 07 17:06:11.043416 2018] [proxy_html:notice] [pid 32210:tid 2927132672] AH01425: I18n support in mod_proxy_html requires mod_xml2enc. Without it, non-ASCII characters in proxied pages are likely to display incorrectly.
. ok 

# 에러 내용을 체크하여 활성화 해 봅니다. 그런데 모듈이 없네요. 그냥 넘어갑니다.
root@AOL-Debian:~# a2enmod mood_xml2enc
ERROR: Module mood_xml2enc does not exist!
root@AOL-Debian:~# 


설정 파일을 하나 생성합니다. 그리고 포트 설정을 맞춥니다.


root@AOL-Debian:~# nano /etc/apache2/sites-available/udpxy.conf 



<Virtualhost *:50000>

ProxyRequests Off


<Location />

        AuthType Basic

        AuthName "user only"

        AuthUserFile /etc/apache2/passwd

        Require valid-user

</Location>


<Proxy *>

Order Deny,allow

Allow from all

</Proxy>

ProxyPass / http://127.0.0.1:4022/

ProxyPassReverse / http://127.0.0.1:4022/

</Virtualhost>



# 50000 포트 리스닝 추가

root@AOL-Debian:~# nano /etc/apache2/ports.conf 


# If you just change the port or add more ports here, you will likely also

# have to change the VirtualHost statement in

# /etc/apache2/sites-enabled/000-default.conf


Listen 80

Listen 50000



<IfModule ssl_module>

        Listen 443

</IfModule>


<IfModule mod_gnutls.c>

        Listen 443

</IfModule>


# vim: syntax=apache ts=4 sw=4 sts=4 sr noet


# 계정 추가
root@AOL-Debian:~# htpasswd -c /etc/apache2/passwd djjproject
New password: 
Re-type new password: 
Adding password for user djjproject
root@AOL-Debian:~# 


# 사이트 활성 화 및 재시작
root@AOL-Debian:~# a2ensite udpxy.conf
Enabling site udpxy.
To activate the new configuration, you need to run:
  service apache2 reload
root@AOL-Debian:~# service apache2 restart
[....] Restarting web server: apache2[Tue Aug 07 17:12:56.895903 2018] [proxy_html:notice] [pid 1412:tid 2884395008] AH01425: I18n support in mod_proxy_html requires mod_xml2enc. Without it, non-ASCII characters in proxied pages are likely to display incorrectly.
. ok 
root@AOL-Debian:~# 


udpxy 를 lo 인터페이스에 물립니다.


lo 인터페이스에 물리면 외부에서 접근이 불가능해집니다. 오로지 127.0.0.1 을 통해서만 접근이 가능하게 됩니다.


# 돌고있는 udpxy 종료시키기

root@AOL-Debian:~# ps -ef | grep udpxy

root     31584     1  0 17:03 ?        00:00:00 /usr/local/bin/udpxy -a eth0 -m eth0 -p 4022 -c 4

root     32038 24097  0 17:05 pts/0    00:00:00 grep udpxy

root@AOL-Debian:~# kill 31584


root@AOL-Debian:~# /usr/local/bin/udpxy -a lo -m eth0 -p 4022 -c 4





4. 부팅시 udpxy 시작 스크립트 등록


root@AOL-Debian:~# nano /etc/rc.local


# udpxy

su root -c "/usr/local/bin/udpxy -a lo -m eth0 -p 4022 -c 4"





5. 사용해보기


http://id:pw@ipaddr:50000/rtp/ip:port

http://id:pw@ipaddr:50000/udp/ip:port


감사합니다.



댓글0