Jump to content
Not connected, Your IP: 18.119.122.140
Sign in to follow this  
shane_b

Block traffic when VPN disconnects error with BT

Recommended Posts

Hi

I managed to follow the tutorial posted here sometime ago and successfully set up a connection using waterproof and viscosity. However my girlfriend has just changed to BT internet and airport (osx) now doesn't make an internet connection and self defines an IP address. The default gateway for bt is 192.168.254 and I usually auto connect to 192.168.1.88 so I don't understand where I am going wrong

Here is what I have

sudo sysctl -w net.inet.ip.fw.enable=0

sudo sysctl -w net.inet.ip.forwarding=0

sudo ipfw flush

sudo ipfw delete set 31

sudo sysctl -w net.inet.ip.fw.enable=1

sudo sysctl -w net.inet.ip.forwarding=0

sudo sysctl -w net.inet.ip.fw.verbose=1

sudo sysctl -w net.inet.ip.fw.verbose_limit=5000

sudo ipfw add 01002 allow udp from 192.168.0.0/24 to 95.211.191.33 dst-port 443 keep-state

sudo ipfw add 01004 allow udp from 192.168.0.0/24 to 69.163.36.66 dst-port 443 keep-state

sudo ipfw add 01006 allow udp from 192.168.0.0/24 to 31.193.12.98 dst-port 443 keep-state

sudo ipfw add 01008 allow udp from 192.168.1.0/24 to 95.211.191.33 dst-port 443 keep-state

sudo ipfw add 01012 allow udp from 192.168.1.0/24 to 69.163.36.66 dst-port 443 keep-state

sudo ipfw add 01014 allow udp from 192.168.1.0/24 to 31.193.12.98 dst-port 443 keep-state

sudo ipfw add 02002 allow ip from 192.168.0.0/24 to 95.211.191.33 dst-port 443 keep-state

sudo ipfw add 02004 allow ip from 192.168.0.0/24 to 69.163.36.66 dst-port 443 keep-state

sudo ipfw add 02006 allow ip from 192.168.0.0/24 to 31.193.12.98 dst-port 443 keep-state

sudo ipfw add 02008 allow ip from 192.168.1.0/24 to 95.211.191.33 dst-port 443 keep-state

sudo ipfw add 02012 allow ip from 192.168.1.0/24 to 69.163.36.66 dst-port 443 keep-state

sudo ipfw add 02014 allow ip from 192.168.1.0/24 to 31.193.12.98 dst-port 443 keep-state

sudo ipfw add 03000 allow ip from 192.168.0.0/24 to 192.168.0.0/24 keep-state

sudo ipfw add 03002 allow ip from 192.168.1.0/24 to 192.168.1.0/24 keep-state

sudo ipfw add 04000 allow ip from 127.0.0.1 to any

sudo ipfw add 05000 allow ip from 10.0.0.0/8 to any

sudo ipfw add 05002 allow ip from any to 10.0.0.0/8

sudo ipfw add 65534 deny ip from any to any

Thanks

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...