tkom_peer.tmpl 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # Configuration file for PPP, using PPP over Ethernet
  2. # to connect to a DSL provider.
  3. #
  4. # See the manual page pppd(8) for information on all the options.
  5. ##
  6. # Section 1
  7. #
  8. # Stuff to configure...
  9. # MUST CHANGE: Uncomment the following line, replacing the user@provider.net
  10. # by the DSL user name given to your by your DSL provider.
  11. # (There should be a matching entry in /etc/ppp/pap-secrets with the password.)
  12. {%- set user = salt['pillar.get']('nodes:' ~ grains['id'] ~ ':pppoe:user', 'WRONG USER') %}
  13. user "{{ user }}"
  14. # Use the pppoe program to send the ppp packets over the Ethernet link
  15. # This line should work fine if this computer is the only one accessing
  16. # the Internet through this DSL connection. This is the right line to use
  17. # for most people.
  18. pty "/usr/sbin/pppoe -I vlan4006 -T 80 -m 1452"
  19. # An even more conservative version of the previous line, if things
  20. # don't work using -m 1452...
  21. #pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1412"
  22. # If the computer connected to the Internet using pppoe is not being used
  23. # by other computers as a gateway to the Internet, you can try the following
  24. # line instead, for a small gain in speed:
  25. #pty "/usr/sbin/pppoe -I eth0 -T 80"
  26. # The following two options should work fine for most DSL users.
  27. # Assumes that your IP address is allocated dynamically
  28. # by your DSL provider...
  29. noipdefault
  30. # Try to get the name server addresses from the ISP.
  31. #usepeerdns
  32. # Use this connection as the default route.
  33. # Comment out if you already have the correct default route installed.
  34. #defaultroute
  35. ##
  36. # Section 2
  37. #
  38. # Uncomment if your DSL provider charges by minute connected
  39. # and you want to use demand-dialing.
  40. #
  41. # Disconnect after 300 seconds (5 minutes) of idle time.
  42. #demand
  43. #idle 300
  44. ##
  45. # Section 3
  46. #
  47. # You shouldn't need to change these options...
  48. hide-password
  49. lcp-echo-interval 20
  50. lcp-echo-failure 3
  51. # Override any connect script that may have been set in /etc/ppp/options.
  52. connect /bin/true
  53. noauth
  54. persist
  55. mtu 1492
  56. # RFC 2516, paragraph 7 mandates that the following options MUST NOT be
  57. # requested and MUST be rejected if requested by the peer:
  58. # Address-and-Control-Field-Compression (ACFC)
  59. noaccomp
  60. # Asynchronous-Control-Character-Map (ACCM)
  61. default-asyncmap