What's new
  • Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as: All that and more! Registration is quick, simple and absolutely free. Join our community today!

Tutorial SoftEtherVPN Server Configurations (with Openvpn) Autoscript using Local Bridge via Dnsmasq (DEBIAN9/UBUNTU)

tacome9

Eternal Poster
Established
Joined
Aug 8, 2014
Messages
1,818
Reaction
3,613
, Last edited:
And i qoute "reason.PNG"

Mula ng malaman ko na mas maganda performance ng local bridging sa softether vpnserver, dahil sa unang post ni sir Bon-chan sa kanyang tutorial using isc-dhcp-server, sobra na akong naobsessed na mapagana ng maayos at okay ang lahat ng codesng local bridging sa aking personal server.
Actually mula ng naipost niya ito, kaagad akong nagswitch sa local bridge gamit yung tutorial niya, pero may mga problemang naencounter kaya nagmanual ako install isa isa at inalam kung saan may mali.
Napagana ko naman ngunit ginusto ko na mas mapaayos pa para magawan ng autoscript. Ngunit sadyang mahirap paganahin ang isc-dhcp-server kaya naghanap ako ng ibang pwedeng gamitin at nakarating ako sa blog ni sir Lincoln Lee about local bridge ng softether via dnsmasq, at iyon mas maganda resulta.

Kaya without any further ado, eto na po "SoftetherVPN Server Autoscript using Local Bridge via Dnsmasq, with OpenVPN and Squid Proxy na rin para masaya.

Requirements:
Ubuntu 18/16 server or Debian 9 server
Root access


Commands:
Update VPS and reboot first
Code:
apt-get clean && apt-get update && apt-get upgrade -y && apt-get full-upgrade -y && apt-get --fix-missing install -y && apt-get autoremove -y && reboot
Get file and Install
You do not have permission to view the full content of this post. Log in or register now.
After that, reboot niyo na lang po kung OC kayo tulad sakin. And your server is done.
Note: Dont forget to allow used port on networking firewall of your vps.

Screenshots:
1. Side by side install (Debian 9 and Ubuntu 18)
se1.PNG

2. Fill up necessary details
se2.PNG

3. Ready to go
se3.png

4. Displaying Logs of Important Details
se4.PNG

5. Checking vpnserver and dnsmasq status if properly working
sednsmasqcheck.PNGsednsmasqcheck.PNG


Additional Info base sa mga nacocomment:
Dahil nakabase sa tutorial ni sir bonchan yung autoscript ko, ganito lang din po yung pagadd ng users saka pagset ng max simultaneous connections.
And I qoute
"
Sixth Step:
+ Creating user for our SoftEtherVPN Server
# Note here we're using our created Virtual Hub to create a user account. Every Hub, different user databases.

# Set nyo po muna ung values sa variables, copy this then edit:
  • Edit this and run for example: VPNUsername='Bon-chan' && VPNPassword='phcorner'
# Then create our user account
  • run: vpncmd localhost /SERVER /ADMINHUB:"$VirtualHubName" /CMD UserCreate $VPNUsername /GROUP:none /REALNAME:none /NOTE:none &> /dev/null && vpncmd localhost /SERVER /ADMINHUB:"$VirtualHubName" /CMD UserPasswordSet $VPNUsername /PASSWORD:"$VPNPassword" &> /dev/null
# And then setting our Max Sessions for user (Multilogin for short), seset po natin dito sa 50000 for publicity use, or kung want nyo po per-user use lang, set nyo lang po sa 1
  • vpncmd localhost /SERVER /ADMINHUB:"$VirtualHubName" /CMD SetMaxSession 50000
"
Change niyo nalang yung VirtualHubName to your designated Virtual Hub. And reenter muna yung server password kapag ka nirun niyo po ito.



Autoscipt is fully tested on AWS VPS ...

Give feedback po kung may error gamiting ibang vps host.

Yan lamang po. Maraming salamat.
This autoscript is inspired by sir Bon-chan and Lincoln Lee.

Good Day !!!


Feedbacks :)

Nice ma try nga neto sa Azure

Update: Working sa Azure Ubuntu18
feed back : na try ko na sa DO mamaw to lakas ng hatak sa net . thanks sa share mo ate 😁
Sige2 po boss/madam, maraming salamat ulit sa setup mo. Stable sa OL games yung setup mo. Sana mayroon din kayo setup na kagaya nyan sa FedoraOS/CentOS hihihihi
 

Attachments

tacome9

Eternal Poster
Safe to reboot po kasi nakaautostart po lahat yung services. :giggle:
 
1
1nc0gnitus
same lang din po. Kung ano yung command sa tutorial niya ganyan din po diyan. Nakabase sa tutorial niya yung mga commands diyan.
Sinubukan ko po kanina wala po. No specified Virtual Hub name po nakalagay pero tama naman po na input ko na Virtual Hub name. Explore ko nalang po. Maraming salamat po
 

tacome9

Eternal Poster
Post updated po para sa mga nagtatanong kung oaano mag add ng users ..
Advice ko na rin po gumamit kayo ng softether server vpn manager for windows. Mas madali magmanage ng lahat doon.
 
1 Comment
1
1nc0gnitus
Pano po pag phone user lang ma'am tacome9 ? Hirap po i-manage eh hehe. Tanong ko lang din po pano pag mag-aadd ng new Virtual Hub. Nag-add po kase ako then sinubukan ko unsuccessful po. Di ko po alam yung dapat i-enable para gumana sa new Virtual Hub. Sensya na po baguhan lang dito. Salamat po
 
Last edited:

Online statistics

Members online
759
Guests online
1,002
Total visitors
1,761

Forum statistics

Threads
782,012
Messages
15,465,958
Members
1,418,686
Top