PaulHowarth/Blog/2012-07-06

Friday 6th July 2012

Fedora Project

  • Updated perl-Crypt-DH to 0.07 in Rawhide (f18-perl):

    • Made Math::BigInt::* dependency dynamic to avoid Math::BigInt falling back to BigInt backends that are too slow for practical use

  • Updated perl-SUPER to 1.20120705 in Rawhide (f18-perl):

Local Packages

  • New package plusnet-fttc, a set of scripts to bring up my Internet connection (I'm with UK ISP Plusnet with a Fibre broadband product, and I'm connecting a Linux server directly to the VDSL modem using PPPoE)

  • I was hoping to be able to create an ifcfg-ppp0 configuration in /etc/sysconfig/network-scripts and let NetworkManager look after the connection but it seems the current version of NetworkManager can't do that for xDSL connections (unlike ethernet ones), and, worse, it wants to be configured using the nm-connection-editor GUI and store the password in the Gnome keyring, neither of which are particularly helpful on a minimal server that doesn't have Gnome installed. So,what I ended up with was a systemd unit to run pppd:

  • [Unit]
    Description=Plusnet FTTC connection
    Requires=network.target
    After=network.target
    
    [Service]
    ExecStart=/sbin/pppd call plusnet-fttc
    Restart=always
    
    [Install]
    WantedBy=multi-user.target
  • ... and a /etc/ppp/peers/plusnet-fttc file for the connection details:

  • #
    # pppd options file for connection to Plusnet using FTTC/PPPoE
    #
    
    #
    # We will use the PPPoE plugin for ppp
    plugin rp-pppoe.so
    
    #
    # Our DSL modem (preconfigured for PPPoE) is on interface em1
    #
    em1
    
    #
    # Specify your username here, which should be of the form username@plusdsl.net
    # You'll also need to set up /etc/ppp/chap-secrets (owned by root, mode 600)
    # to look like this:
    #
    # # client              server  secret                  IP addresses
    # username@plusdsl.net  *       password
    #
    name username@plusdsl.net
    
    #
    # Log messages to a convenient place.
    #
    logfile /var/log/ppp/plusnet-fttc
    
    #
    # Create a /var/run/ppp-plusnet-fttc.pid file with our PID in it.
    #
    linkname plusnet-fttc
    
    #
    # Pass parameter 6 to ip-up and ip-up.local as "plusnet"
    #
    ipparam plusnet
    
    #
    # Debug the connection
    #
    #debug
    
    # ============================================
    # SHOULDN'T NEED TO CHANGE ANYTHING BELOW HERE
    # ============================================
    
    #
    # Ask the peer for the addresses of some nameservers to use. If you're not
    # running your own nameserver, you may wish to get /etc/ppp/ip-up to use
    # the environment variables DNS1 and DNS2 to set up /etc/resolv.conf
    #
    usepeerdns
    
    #
    # Set up the default route to go through PlusNet
    #
    defaultroute
    
    #
    # If the connection breaks, try to restore it.
    #
    persist
    
    #
    # Don't fork as we're using systemd
    #
    nodetach
    
    #
    # We don't need the remote server to authenticate itself
    #
    noauth
    
    #
    # Turn off transmission protocols we know won't be used
    #
    nobsdcomp
    nodeflate
    
    #
    # Time this thing out if it goes poof
    #
    lcp-echo-failure 20
    lcp-echo-interval 10
  • ... and the password goes in /etc/ppp/chap-secrets as usual:

  • # You'll need to add a line to /etc/ppp/chap-secrets in order
    # for the PPP daemon to authenticate your PlusNet username and
    # password when connecting.
    #
    # Change "username" to whatever your PlusNet account name is.
    # For instance, if your host is linuxwizard.plus.com, change
    # "username" to "linuxwizard".
    #
    # Your login realm might be something other than "plusdsl.net";
    # long-time customers may have "plus.net" and there may be others.
    # Your documentation from PlusNet should tell you what it is.
    # Change "plusdsl.net" to whatever your login realm is.
    #
    # Change "password" to whatever your password is.
    #
    # Make sure that /etc/ppp/chap-secrets is owned by root and
    # has permissions 0600.
    #
    # client                server  secret                  IP addresses
    username@plusdsl.net    *       password
  • Updated getmail to 4.31.0:

    • Improved backwards compatibility with pre-v.4.22.0 oldmail files, so IMAP mail is not re-retrieved if you upgrade from a 4.22 or earlier to this one; no user action necessary

  • Updated perl-SUPER to 1.20120705 as per the Fedora version

  • Cleaned up and rebuilt perl-HTML-SimpleLinkExtor, perl-Mixin-Linewise, perl-Pod-Eventual, perl-Test-Base, perl-Test-Output, perl-Test-YAML-Meta


Recent