tkom_peer.tmpl 2.3 KB

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