
먼저, 제 영어 실력과 이 주제에 대한 지식이 부족해서 죄송합니다.
저는 독일(Windows 2008 R2)에 전용 서버를 두고 있으며 스페인에 살고 있습니다. 독일에 있는 서버를 통해 내 집 컴퓨터(Windows 7 Pro x64)에서 인터넷에 액세스하고 싶습니다. 그러면 가끔 필요한 독일 IP를 사용할 수 있습니다.
두 컴퓨터 모두에 완전히 액세스할 수 있지만 어디서부터 시작해야 할지 모르겠습니다. (제 지식은 소프트웨어 개발에만 국한되어 있습니다 :)
VPN을 만들어야 하는 경우 어디서부터 시작해야 하는지 알고 싶습니다.
미리 감사드립니다!
업데이트 1
OpenVPN의 많은 옵션을 시도했지만 안타깝게도 네트워킹에 대해 아무것도 모르기 때문에 내가 무엇을 하고 있는지 모른다는 점을 받아들여야 했습니다. :(
다음은 내 구성 파일입니다. 대부분의 옵션은 샘플 구성 파일에 있습니다.
server.conf
#server config file start
port 1194
proto udp
dev tun
server 10.0.0.0 255.255.255.224 #you may choose any subnet. 10.0.0.x is used for this example.
ca "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\server.crt"
key "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\server.key"
dh "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\dh1024.pem"
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
#the following commands are optional
keepalive 10 120
comp-lzo
persist-key
persist-tun
verb 5
#config file ends
클라이언트.conf
#client config file start
client
dev tun
proto udp
remote 176.9.99.180 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\client1.crt"
key "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\client1.key"
ns-cert-type server
comp-lzo
verb 5
explicit-exit-notify 2
ping 10
ping-restart 60
route-method exe
route-delay 2
# end of client config file
서버의 네트워크 설정은 다음과 같습니다.
IP 주소: 176.9.99.180 서브넷 마스크: 255.255.255.224 기본 게이트웨이: 176.9.99.161
기본 DNS 서버: 127.0.0.1
업데이트 2
라우팅 테이블은 다음과 같습니다.
===========================================================================
Interface List
14...00 ff e4 70 31 16 ......TAP-Win32 Adapter V9
11...54 04 a6 7e ee ae ......Realtek PCIe GBE Family Controller
1...........................Software Loopback Interface 1
10...00 00 00 00 00 00 00 e0 Microsoft Teredo Tunneling Adapter
12...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 176.9.99.161 176.9.99.180 11
10.0.0.0 255.255.255.224 10.0.0.2 10.0.0.1 30
10.0.0.0 255.255.255.252 On-link 10.0.0.1 286
10.0.0.1 255.255.255.255 On-link 10.0.0.1 286
10.0.0.3 255.255.255.255 On-link 10.0.0.1 286
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
176.9.99.160 255.255.255.224 On-link 176.9.99.180 266
176.9.99.180 255.255.255.255 On-link 176.9.99.180 266
176.9.99.191 255.255.255.255 On-link 176.9.99.180 266
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 10.0.0.1 286
224.0.0.0 240.0.0.0 On-link 176.9.99.180 266
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 10.0.0.1 286
255.255.255.255 255.255.255.255 On-link 176.9.99.180 266
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
0.0.0.0 0.0.0.0 176.9.99.161 1
===========================================================================
IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination Gateway
10 58 ::/0 On-link
1 306 ::1/128 On-link
10 58 2001::/32 On-link
10 306 2001:0:5ef5:73b8:ce2:1218:4ff6:9c4b/128
On-link
14 286 fe80::/64 On-link
11 266 fe80::/64 On-link
10 306 fe80::/64 On-link
10 306 fe80::ce2:1218:4ff6:9c4b/128
On-link
14 286 fe80::7c23:a:ec4e:2cfc/128
On-link
11 266 fe80::bd18:6249:9f7d:89a2/128
On-link
1 306 ff00::/8 On-link
10 306 ff00::/8 On-link
14 286 ff00::/8 On-link
11 266 ff00::/8 On-link
===========================================================================
Persistent Routes:
None
답변1
독일 IP만 사용해야 하는 경우 서버에 프록시를 설치/구성하고 집 컴퓨터에서 이 프록시를 사용하여 인터넷에 액세스할 수 있습니다.
VPN도 그 역할을 할 수 있지만 독일 IP로 인터넷에 액세스해야 한다면 너무 많은 것 같습니다.