Skip to content

Instantly share code, notes, and snippets.

View pituluk's full-sized avatar

Łukasz Pituła pituluk

View GitHub Profile
@pituluk
pituluk / README.md
Last active July 28, 2026 08:33
CGNAT Bypass using Wireguard on Oracle Cloud

Hello, I had issues with CGNAT and wanted to bypass it using WireGuard and all was fine but I wanted my PC to see the remote address of people connecting to me but I couldnt find anything on the internet here is how I solved it:

  1. Add another VNIC to my instance (for seperation, not needed)
  2. Add chosen ports in security lists and UFW allow to {interface_ip} port {port}
  3. Allow forwarding from wg0 route allow in on wg0 and allow connecting to wg0 allow in on wg0
  4. Forward a port:
    • Set up wireguard with keys and peer ips on server and 'client'
    • Paste this PostUp PostDown pair, replace vpn_interface_name with the interface name you want your users to connect to and routing_table_name to name of the table that has this interface as default route: