Skip to content

Instantly share code, notes, and snippets.

@higebu
Created June 10, 2012 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save higebu/2906340 to your computer and use it in GitHub Desktop.
Save higebu/2906340 to your computer and use it in GitHub Desktop.
vyatta pptp configuration
vpn {
pptp {
remote-access {
authentication {
local-users {
username user {
password pass
}
}
mode local
}
client-ip-pool {
start 192.168.0.240
stop 192.168.0.249
}
dns-servers {
server-1 192.168.0.1
server-2 8.8.8.8
}
outside-address 192.168.0.220
}
}
}
nat {
source {
rule 10 {
outbound-interface eth0
source {
address 192.168.0.240-192.168.0.249
}
translation {
address masquerade
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment