Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: How to set up a VPN server on Ubuntu

  1. #11
    Join Date
    Sep 2007
    Beans
    13

    Re: How to set up a VPN server on Ubuntu

    I still cant get Masquerading to work with ufw. i noticed something interesting:
    for ufw you say to add this to the nat table:
    -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE

    but for iptables you say to add this rule to the nat table:
    -A POSTROUTING -s 192.168.0.0/16 -o ppp0 -j MASQUERADE

    why are these different? i tried both configurations in my /etc/ufw/before.rules file and neither of them work. what am i missing? i am desperately trying to get this working asap for a project for work.

  2. #12
    Join Date
    Sep 2007
    Beans
    13

    Re: How to set up a VPN server on Ubuntu

    Quote Originally Posted by devliljohn View Post
    I still cant get Masquerading to work with ufw. i noticed something interesting:
    for ufw you say to add this to the nat table:
    -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE

    but for iptables you say to add this rule to the nat table:
    -A POSTROUTING -s 192.168.0.0/16 -o ppp0 -j MASQUERADE

    why are these different? i tried both configurations in my /etc/ufw/before.rules file and neither of them work. what am i missing? i am desperately trying to get this working asap for a project for work.
    ok after fooling around with this on and off for 2 days i figured out the issue with ufw ip masq is that he has specified the wrong subnetmask:
    192.168.0.0/24 will not work because it will not route the 192.168.1.1-255 client addesses so you have to use :
    192.168.0.0/16

  3. #13
    Join Date
    Oct 2007
    Location
    Madison, Wisconsin
    Beans
    90
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: How to set up a VPN server on Ubuntu

    why pptpd and not openvpn? just curious...

  4. #14
    Join Date
    Jul 2011
    Beans
    8

    Re: How to set up a VPN server on Ubuntu

    I have set up PPTP VPN server on ubuntu.
    But accounts are open for concurrent simultaneous connections. means there can be many users using one account at the time.
    i need to limit that to one user at the time.
    anybody knows how it can be done?

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •