how to customize openvpn module??

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
chenmin
Posts: 6
Joined: Tue Sep 20, 2016 4:58 am

how to customize openvpn module??

Post by chenmin » Tue Sep 20, 2016 5:12 am

how to customize openvpn module??

how to achieve my customized openvpn server.conf like below to the openvpn of sevpn

is there any doc or deamon or something can guide me???

thank you admins

port 440
proto tcp
dev tun
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/centos.crt
key /etc/openvpn/easy-rsa/keys/centos.key
dh /etc/openvpn/easy-rsa/keys/dh2048.pem
auth-user-pass-verify /etc/openvpn/login.sh via-env
client-disconnect /etc/openvpn/disconnect.sh
client-connect /etc/openvpn/connect.sh
client-cert-not-required
username-as-common-name
script-security 3 system
server 10.8.0.0 255.255.0.0
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 114.114.114.114"
push "dhcp-option DNS 114.114.115.115"
management localhost 7505
keepalive 10 120
tls-auth /etc/openvpn/easy-rsa/ta.key 0
comp-lzo
persist-key
persist-tun
status /home/wwwroot/default/res/openvpn-status.txt
log openvpn.log
log-append openvpn.log
verb 3

chenmin
Posts: 6
Joined: Tue Sep 20, 2016 4:58 am

Re: how to customize openvpn module??

Post by chenmin » Tue Sep 20, 2016 5:17 am

management localhost 7505
keepalive 10 120
tls-auth /etc/openvpn/easy-rsa/ta.key 0
comp-lzo


actually,the above are the configures i want to realize first.

thanks

raafat
Posts: 223
Joined: Fri Jul 03, 2015 2:21 pm

Re: how to customize openvpn module??

Post by raafat » Tue Sep 20, 2016 10:49 pm

Hello There!. Why don't just play with SE server and after that come back to tell us what your topology with SE server lacks ?. you can come back to say that SE doesn't let me set this option, or change that parameter, or how to achieve a specific topology with SE server.


Good luck (:.

chenmin
Posts: 6
Joined: Tue Sep 20, 2016 4:58 am

Re: how to customize openvpn module??

Post by chenmin » Wed Sep 21, 2016 12:52 am

raafat wrote:
> Hello There!. Why don't just play with SE server and after that come back
> to tell us what your topology with SE server lacks ?. you can come back to
> say that SE doesn't let me set this option, or change that parameter, or
> how to achieve a specific topology with SE server.
>
>
> Good luck (:.

yes. i found that when i connect to the openvpn of sevpn ,the network speed of some app are very slow,so i guess if sever and client are not tls-auth,or the package between them are not compressed made some app slow ,so i want to test it ,but i found i can't custom any config of the openvpn module.

so give me some help.
Last edited by chenmin on Wed Sep 21, 2016 12:58 am, edited 1 time in total.

raafat
Posts: 223
Joined: Fri Jul 03, 2015 2:21 pm

Re: how to customize openvpn module??

Post by raafat » Wed Sep 21, 2016 12:56 am

May you provide us more details about your situation ?. Why do you need OpenVPN in the first place ?.

chenmin
Posts: 6
Joined: Tue Sep 20, 2016 4:58 am

Re: how to customize openvpn module??

Post by chenmin » Wed Sep 21, 2016 1:22 am

raafat wrote:
> May you provide us more details about your situation ?. Why do you need
> OpenVPN in the first place ?.

my situation is i need to achieve a full featured openvpn module that i can custom any configuration of openvpn module of sevpn.

on the other side,client side,i will change host in header of http request from apps via configure the configuration file of openvpn, so that i can implement that according to different host in header , reply different response . : )

raafat
Posts: 223
Joined: Fri Jul 03, 2015 2:21 pm

Re: how to customize openvpn module??

Post by raafat » Wed Sep 21, 2016 2:07 am

May be this seems a little bit out of the context, but what don't you just use SE client ?

chenmin
Posts: 6
Joined: Tue Sep 20, 2016 4:58 am

Re: how to customize openvpn module??

Post by chenmin » Wed Sep 21, 2016 2:18 am

raafat wrote:
> May be this seems a little bit out of the context, but what don't you just
> use SE client ?


i can not change the host in header of http request via SE client , and there is no client run on mobile device, android and iPhone.

raafat
Posts: 223
Joined: Fri Jul 03, 2015 2:21 pm

Re: how to customize openvpn module??

Post by raafat » Wed Sep 21, 2016 8:23 am

chenmin wrote:
> i can not change the host in header of http request via SE client.

What is the point of that ?. I mean changing the host of http request's header ?

chenmin
Posts: 6
Joined: Tue Sep 20, 2016 4:58 am

Re: how to customize openvpn module??

Post by chenmin » Wed Sep 21, 2016 9:14 am

raafat wrote:
> chenmin wrote:
> > i can not change the host in header of http request via SE client.
>
> What is the point of that ?. I mean changing the host of http request's header ?


by changing host, we reply different response ,do something we want

raafat
Posts: 223
Joined: Fri Jul 03, 2015 2:21 pm

Re: how to customize openvpn module??

Post by raafat » Wed Sep 21, 2016 9:39 am

I do understand if you wouldn't feel comfortable telling us what exactly you are doing, but at the same time the likelihood of getting your problem solved gets fewer (:. Think about it. Now why do you think that the default settings that come with SE server are not enough for your topology ?

thisjun
Posts: 2458
Joined: Mon Feb 24, 2014 11:03 am

Re: how to customize openvpn module??

Post by thisjun » Tue Oct 11, 2016 6:47 am


Post Reply