Skip to content

Commit

Permalink
config: fix up config and adjust default MTU
Browse files Browse the repository at this point in the history
Signed-off-by: Ammar Faizi <[email protected]>
  • Loading branch information
ammarfaizi2 committed Sep 6, 2021
1 parent 2202e56 commit d15c3d8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
11 changes: 8 additions & 3 deletions config/client.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,23 @@

[sys]
thread = 4
verbose_level = 4
verbose_level = 2
data_dir = data/server

[socket]
use_encryption = 1
use_encryption = 0
event_loop = epoll
sock_type = udp
server_addr = 127.0.0.1
server_addr = 68.183.184.174
server_port = 44444

[iface]
dev = tvpnc0

;
; Set override_default to 1 if you want to use VPN as
; your default internet connection.
;
override_default = 0

[auth]
Expand Down
6 changes: 3 additions & 3 deletions config/server.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[sys]
thread = 4
verbose_level = 4
verbose_level = 2
data_dir = data/server

[socket]
Expand All @@ -19,6 +19,6 @@ ssl_priv_key = data/server/default_key.pem

[iface]
dev = tvpns0
mtu = 1480
ipv4 = 10.1.1.1
mtu = 1470
ipv4 = 10.5.5.1
ipv4_netmask = 255.255.255.0
6 changes: 3 additions & 3 deletions data/server/users/ammarfaizi2.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ password = mypassword123
; Virtual network interface IP config for client
; (this is set from the server)
;
mtu = 1480
ipv4 = 10.1.1.2
mtu = 1470
ipv4 = 10.5.5.2
ipv4_netmask = 255.255.255.0
ipv4_dgateway = 10.1.1.1
ipv4_dgateway = 10.5.5.1
2 changes: 2 additions & 0 deletions src/teavpn2/client/linux/udp_epoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ static ssize_t do_send_to(int udp_fd, const void *pkt, size_t send_len)
}


#if 0
static ssize_t do_recv_from(int udp_fd, void *pkt, size_t recv_len)
{
int ret;
Expand All @@ -221,6 +222,7 @@ static ssize_t do_recv_from(int udp_fd, void *pkt, size_t recv_len)
pr_debug("recvfrom() %zd bytes", recv_ret);
return recv_ret;
}
#endif


static int handle_tun_data(struct epl_thread *thread)
Expand Down

0 comments on commit d15c3d8

Please sign in to comment.