創作內容

0 GP

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

作者:♙♲⚙\~O_O~/⚙♲♙│2018-04-18 05:44:58│巴幣:0│人氣:202
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分享器然後還可能不安全。


引用網址:https://home.gamer.com.tw/TrackBack.php?sn=3959660
All rights reserved. 版權所有,保留一切權利

相關創作

同標籤作品搜尋:openvpn|gateway|ubuntu|linux

留言共 0 篇留言

我要留言提醒:您尚未登入,請先登入再留言

喜歡★agold404 可決定是否刪除您的留言,請勿發表違反站規文字。

前一篇:【吃飽太閒】你的 IP和... 後一篇:【ㄎㄧㄤ】雖然模型tra...

追蹤私訊切換新版閱覽

作品資料夾

Lobster0627全體巴友
大家可以多多來我的YT頻道看看哦(*´∀`)~♥https://www.youtube.com/@lobstersandwich看更多我要大聲說昨天18:56


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

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