tkom_peer.tmpl 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. {%- set iface = salt['pillar.get']('nodes:' ~ grains['id'] ~ ':pppoe:iface', 'eth2') %}
  19. pty "/usr/sbin/pppoe -I {{ iface }} -T 80 -m 1452"
  20. # An even more conservative version of the previous line, if things
  21. # don't work using -m 1452...
  22. #pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1412"
  23. # If the computer connected to the Internet using pppoe is not being used
  24. # by other computers as a gateway to the Internet, you can try the following
  25. # line instead, for a small gain in speed:
  26. #pty "/usr/sbin/pppoe -I eth0 -T 80"
  27. # The following two options should work fine for most DSL users.
  28. # Assumes that your IP address is allocated dynamically
  29. # by your DSL provider...
  30. noipdefault
  31. # Try to get the name server addresses from the ISP.
  32. #usepeerdns
  33. # Use this connection as the default route.
  34. # Comment out if you already have the correct default route installed.
  35. #defaultroute
  36. ##
  37. # Section 2
  38. #
  39. # Uncomment if your DSL provider charges by minute connected
  40. # and you want to use demand-dialing.
  41. #
  42. # Disconnect after 300 seconds (5 minutes) of idle time.
  43. #demand
  44. #idle 300
  45. ##
  46. # Section 3
  47. #
  48. # You shouldn't need to change these options...
  49. hide-password
  50. lcp-echo-interval 20
  51. lcp-echo-failure 3
  52. # Override any connect script that may have been set in /etc/ppp/options.
  53. connect /bin/true
  54. noauth
  55. persist
  56. mtu 1492
  57. # RFC 2516, paragraph 7 mandates that the following options MUST NOT be
  58. # requested and MUST be rejected if requested by the peer:
  59. # Address-and-Control-Field-Compression (ACFC)
  60. noaccomp
  61. # Asynchronous-Control-Character-Map (ACCM)
  62. default-asyncmap