mirror of
https://github.com/alpha-si/vpnman.git
synced 2026-04-25 02:55:59 +03:00
[GH-ISSUE #2] Problems to add Networks #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @enrutador on GitHub (Sep 27, 2016).
Original GitHub issue: https://github.com/alpha-si/vpnman/issues/2
Hi Alpha
I have a problem when i create a network for use VpnServer mapping. When I make the settings, I always get the following error:
"execute query error: Column 'user_id' cannot be null

I have users,accounts, and VPNs tunels configured OK. What value need the var "mapped_to" ?
A lot of thanks
@federico-alphasi commented on GitHub (Sep 28, 2016):
Hi, i confirm the problem.
VPN networks have been designed to be connected to VPN nodes and not directly to VPN server.
To fix the problem you have to remove the 'fk_networks_user_id' foreign key from networks table.
You can use the following SQL script:
ALTER TABLE
networksDROP FOREIGN KEY
fk_networks_user_id;ALTER TABLE
networksCHANGE COLUMN
user_iduser_idINT(10) UNSIGNED NULL ;PS: When you create a network, the "Mapped to" field can be left blank.