小屋創作

日誌2018-04-18 05:44

[note] practice: implement vpn-gateway (on VMs)

作者:♙♲⚙\~O_O~/⚙♲♙

Effect: All traffic to the vpn-gateway(say M1) will be redirect to vpn server which M1 connects to. Also, devices behind M1 don't need to setup VPN configurations.
Needs:
  • a vpn server
  • a gateway
Implement detail:
  • vpn server:
    • OS use: ubuntu 16.04
    • follow instruction: https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-16-04
  • gateway:
    • three parts:
vpn-client: included in the above guide, ommited
dhcp-server
firewall
    • dhcp-server:
      1. $ apt install install isc-dhcp-server
      2. # google some config, fill them
      3. "option dns-server" use the vpn server's
    • firewall:
      1. use ufw
      2. similar to vpn server
      3. but redirect traffic from dhcp subnet to interface:tun0

看看等我忘了這件事之後我還有沒有辦法做出來

給不懂英文的人說明效果:
做一個gateway,它會將所有經過它的流量導向它連上的VPN。如此一來在這個gateway後面的機器不需要做任何VPN設定。
又因它是自己建的,OS我自己手上。我可以用虛擬機開它,這樣就不需要買外面的ip分享器然後還可能不安全。


0

0

LINE 分享

相關創作

KDE Plasma虛擬桌面、桌面活動、切換總覽設定

踏入linux的世界7--「地平線:西域禁地」太空漫步+沒聲音

在Linux中調整CPU的電源選項

留言

開啟 APP

face基於日前微軟官方表示 Internet Explorer 不再支援新的網路標準,可能無法使用新的應用程式來呈現網站內容,在瀏覽器支援度及網站安全性的雙重考量下,為了讓巴友們有更好的使用體驗,巴哈姆特即將於 2019年9月2日 停止支援 Internet Explorer 瀏覽器的頁面呈現和功能。
屆時建議您使用下述瀏覽器來瀏覽巴哈姆特:
。Google Chrome(推薦)
。Mozilla Firefox
。Microsoft Edge(Windows10以上的作業系統版本才可使用)

face我們了解您不想看到廣告的心情⋯ 若您願意支持巴哈姆特永續經營,請將 gamer.com.tw 加入廣告阻擋工具的白名單中,謝謝 !【教學】