Results 1 to 2 of 2

Thread: pptp/vpn and policy based routing.

  1. #1
    Join Date
    Dec 2010
    Posts
    5

    Default pptp/vpn and policy based routing.

    Hello All,

    I've been tinkering with policy based routing through pptp/vpn and thought I would post the IP ranges I've gathered so far.

    If anyone has additional ranges I'm sure it would be appreciated.

    Code:
    #!/bin/sh
    #UK VPN
    ip route add default dev ppp0 table 100
    #BBC
    ip rule add to 212.58.0.0/16 table 100
    ip rule add to 212.62.0.0/16 table 100
    #40D on Channel4
    ip rule add to 83.98.0.0/16 table 100
    ip rule add to 66.235.0.0/16 table 100
    ip rule add to 68.142.0.0/16 table 100
    ip rule add to 216.156.0.0/16 table 100
    
    iptables -t nat -I POSTROUTING -o ppp0 -j MASQUERADE
    
    #US VPN
    ip route add default dev ppp1 table 200
    #Hulu
    ip rule add to 8.15.0.0/16 table 200
    ip rule add to 69.31.0.0/16 table 200
    
    iptables -t nat -I POSTROUTING -o ppp1 -j MASQUERADE
    
    exit 0

  2. #2
    Join Date
    Aug 2012
    Posts
    1

    Default

    This has been really helpful, thanks a lot!

    I think Channel 4 have changed their ranges though, are you using any new ranges?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •