Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบเครือข่าย >> VPN

วิธีลบ VPN บน FortiGate Firewall: IPsec, SSL-VPN, Tunnel Management

FortiGate (FortiOS) จัดการ VPN ผ่าน Web GUI / CLI การลบ VPN ขึ้นอยู่กับประเภท: SSL-VPN, IPsec Site-to-Site, Dial-up IPsec

วิธีลบ FortiClient VPN (Client Software)

  1. Windows: Settings → Apps → Installed Apps → FortiClient → Uninstall
  2. macOS: Applications → FortiClient → Move to Trash
  3. Linux: sudo apt remove forticlient / sudo rpm -e forticlient

วิธีลบ IPsec VPN จาก FortiGate (GUI)

  1. Login FortiGate GUI → VPN → IPsec Tunnels
  2. หา Tunnel ที่ต้องการลบ → คลิก Edit (Pencil)
  3. หน้า Edit: คลิก Delete (ไอคอนถังขยะ) → OK
  4. หากลบไม่ได้ (Referenced): ตรวจสอบ Policy, Static Routes, SD-WAN, Zone ที่อ้างอิง Tunnel นี้ → ลบ Reference ก่อน

วิธีเพิ่ม VPN บน FortiGate (SSL-VPN)

  1. VPN → SSL-VPN Settings
  2. Listen on Interface: wan1 (หรือ WAN Interface)
  3. Listen Port: 10443 (Default 443 ชน Admin GUI)
  4. Restrict Access: Limit access to specific hosts (แนะนำ)
  5. Server Certificate: ใส่ Valid Cert (Let's Encrypt / Public CA)
  6. Authentication/Portal Mapping: สร้าง User Group → Map Portal

วิธีลบ VPN Tunnel บน FortiGate (CLI)

config vpn ipsec phase1-interface
    edit "Tunnel_Name"
        next
    end
config vpn ipsec phase2-interface
    edit "Tunnel_Name"
        next
    end
# ลบ Phase2 ก่อน Phase1
config vpn ipsec phase1-interface
    delete "Tunnel_Name"
    end

Debug IPsec Tunnel FortiGate

  1. ตรวจสอบ Physical: Cable, SFP, Link Light
  2. FortiGate LED: Status, HA, Disk
  3. Ping Peer IP (ICMP)
  4. ตรวจสอบ Interface: NAT/Route Mode, IP Address, MTU
  5. Security Policy: Allow IPsec Traffic (UDP 500, 4500, ESP)
  6. Static Routes: ถูกต้องสำหรับ Subnet Remote
  7. Debug Commands:
    diagnose vpn ike log-filter dst-ip4 x.x.x.x
    diagnose debug application ike -1
    diagnose debug enable
    

ต้องการ FortiClient VPN ไหม?

ต้องการหาก: บริษัทบังคับใช้ (Zero Trust Network Access - ZTNA), ต้องการ Endpoint Compliance Check (AV, Patch, Encryption), ใช้ FortiToken/2FA บังคับ ไม่ต้องการหาก: ใช้ VPN มาตรฐาน OpenVPN/WireGuard ได้

ลบ IPsec (Windows/Linux) ยังไง?

Windows: Registry → HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RasMan\Parameters → New DWORD: ProhibitIpSec = 1 → Reboot
Linux: sudo ip xfrm state flush && sudo ip xfrm policy flush (Flush SA/SP)

Reset IPsec VPN Tunnel FortiGate

  1. Monitor → IPsec Monitor
  2. Filter: IPsec Site-to-Site / Dialup
  3. Select Tunnel → Right-click → Bring Down / Bring Up
  4. CLI: execute vpn ipsec tunnel-down "Tunnel_Name" → execute vpn ipsec tunnel-up "Tunnel_Name"