OpenVPN Tap Bridge - Ubuntu > 에필로그

본문 바로가기

OpenVPN Tap Bridge - Ubuntu

페이지 정보

작성자 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 에필로그 댓글 0건 조회 1,533회 작성일 22-06-16 17:35

본문

클라이언트가 서버 측 Lan에 가담하게 한다.

*서버와 클라이언트 hostname을 server, client 네트워크 어댑터를 enp0s3이라고 가정한다.

static.key는 서버에서 만들고 클라이언트에게 복사한다.


-. 서버

sudo apt install openvpn bridge-utils

openvpn --genkey --secret /etc/openvpn/static.key


cat > /etc/openvpn/server.conf << EOF

dev tap0

dev-type tap

proto udp

lport 1194

daemon

auth SHA256

cipher AES-256-CBC

up server.sh

script-security 3

secret static.key

ping-timer-rem

keepalive 10 60

persist-tun

persist-key

log /var/log/openvpn/openvpn.log

status /var/log/openvpn/status.log

verb 3

EOF


cat > /etc/openvpn/server.sh << EOF

#!/bin/bash

ip link add br0 type bridge

ip link set tap0 master br0

ip link set enp0s3 master br0

ip link set br0 up

ip link set tap0 up

EOF


sudo chmod a+x /etc/openvpn/server.sh

sudo systemctl enable openvpn@server --now

sudo ufw allow 1194/udp

cat /var/log/openvpn/status.log

ip addr show tap0


-. 클라이언트

sudo apt install openvpn bridge-utils


cat > /etc/openvpn/client.conf << EOF

dev tap0

remote 서버주소 1194 udp

auth SHA256

cipher AES-256-CBC

up client.sh

script-security 3

secret static.key

persist-tun

persist-key

log /var/log/openvpn/openvpn.log

status /var/log/openvpn/status.log

EOF


cat > /etc/openvpn/client.sh << EOF

#!/bin/bash

ip link add br0 type bridge

ip link set tap0 master br0

ip link set enp0s3 master br0

ip link set br0 up

ip link set tap0 up

ip link set enp0s3 up

EOF


sudo chmod a+x /etc/openvpn/client.sh

sudo systemctl enable openvpn@client --now

cat /var/log/openvpn/status.log

ip addr show tap0

댓글목록

등록된 댓글이 없습니다.

에필로그 340건/8페이지
에필로그 목록
번호 제목 글쓴이 조회 날짜
235 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2272 06-17
234 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1460 06-17
233 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1544 06-16
232 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1448 06-16
열람중 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1534 06-16
230 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1647 06-16
229 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1441 06-16
228 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1453 06-12
227 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1424 06-12
226 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1407 06-12
225 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1541 06-12
224 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1510 06-12
223 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1482 06-12
222 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1554 06-10
221 no_profile 상석하대 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1571 06-10
게시물 검색
[문의] 전화 : 0707-443-0499 메일 : t8@t8.co.kr [분야] Linux, Unix, Windows DNS, 웹, WAS, 역방향프록시, 앱 SQL, 메일, 스트리밍, CDN SMB/CIFS, FTPs, NFS, AFP IKEv2, OpenVPN, WireGuard 대범위 DHCP, WiFi 종속포털, AAA DDoS 우회/분산, 랜섬웨어 대비 장애/재난/해킹시스템 복구 서비스/P2V 마이그레이션 XSS/웹쉘/인젝션/백도어 제거 서버 업그레이드/교체/이전 주문/맞춤/복합/간이서버 제작 특별/희귀/생소한 시스템 상담/구현 문제해결 외

Copyright © T8. All rights reserved.