🗄️ Archive Ovpn tutorial

Status
Not open for further replies.

PHC - Korra

Honorary Poster
Ito na ang pinakakahintay nyo na OpenVPN Tutorial :)

Requirements:
  • VPS Server
  • Utak
  • Talento
  • Patience
  • Internet Connection
Steps:
  1. sudo apt-get update --fix-missing -y && apt-get install -y openvpn easy-rsa
  2. gunzip -c /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz > /etc/openvpn/server.conf
  3. nano /etc/openvpn/server.conf
  4. (Self-Made Config) Edit Line: dh "dh1024.pem" to "dh2048.pem" or as satisfied.
  5. ;push "redirect-gateway def1 bypass-dhcp" uncomment this by removing -> ";" <-
  6. Add these at the desired Config Lane and same as above, uncomment ";":
    ;push "dhcp-option DNS 208.67.222.222"
    ;push "dhcp-option DNS 208.67.220.220"

  7. Ctrl X and hit save at the Moment. (I chose nano because it's pretty easy at madali lang gamitin for Unix)
  8. Lastly, execute this Command:
    echo 1 > /proc/sys/net/ipv4/ip_forward
  9. nano /etc/sysctl.conf
  10. Uncomment
    "#net.ipv4.ip_forward=1" to "net.ipv4.ip_forward=1"
  11. ufw allow ssh
    Also, ufw allow 1194/tcp and allow port 1194 as TCP in the Config of OpenVPN Config.
  12. nano /etc/default/ufw
    DEFAULT_FORWARD_POLICY="ACCEPT"


  13. nano /etc/ufw/before.rules
    #
    # rules.before
    #
    # Rules that should be run before the ufw command line added rules. Custom
    # rules should be added to one of these chains:
    # ufw-before-input
    # ufw-before-output
    # ufw-before-forward
    #

    # START OPENVPN RULES
    # NAT table rules
    *nat
    :POSTROUTING ACCEPT [0:0]
    # Allow traffic from OpenVPN client to eth0
    -A POSTROUTING -s 10.8.0.0/8 -o eth0 -j MASQUERADE
    COMMIT
    # END OPENVPN RULES

    # Don't delete these required lines, otherwise there will be errors
    *filter
  14. ufw enable
    Command may disrupt existing ssh connections. Proceed with operation (y|n)? [Y]

  15. Check UFW Firewall,
    ufw status
- The Most Interesting Part ;) bakit? Ito na. :)
Creating a Certificate Authority and Server-Side Certificate & Key
  • reserved
  • reserved
 
Salamat boss.pero naka install ko ganina ..nag trywx ko pero muconnect man bisan unsay username ug pass..y lami..hehe..try nako ni..salamat kaayo boss...
 
Status
Not open for further replies.

About this Thread

  • 8
    Replies
  • 421
    Views
  • 2
    Participants
Last reply from:
PHC - Korra

Trending Topics

Online now

Members online
529
Guests online
1,255
Total visitors
1,784

Forum statistics

Threads
2,277,853
Posts
28,979,277
Members
1,229,112
Latest member
rosearugay
Back
Top