Skip to content

Instantly share code, notes, and snippets.

@miguelgonz
Forked from craigtaub/gist:8956151
Created February 12, 2014 14:17
Show Gist options
  • Save miguelgonz/8956315 to your computer and use it in GitHub Desktop.
Save miguelgonz/8956315 to your computer and use it in GitHub Desktop.
External access
=== Machine on wifi , dev on IE8
machine:
wifi to iplayer_mobile
-any turn proxies off
unplug eth
dev:
proxies off and extacess on
#reithproxies off
#extaccess pal-ct
#extaccess pal-ct.sandbox.dev.bbc.co.uk static-ct.sandbox.dev.bbc.co.uk
edit eth2 (bridged wifi) and changing to static and giving ip...see bottom
#sudo nano /etc/sysconfig/network-scripts/ifcfg-eth2
move eth1 (ethernet) away
#sudo mv /etc/sysconfig/network-scripts/ifcfg-eth1 ~/ifcfgs/
turn varnish on
#sudo /etc/init.d/varnish start
restart net
#sudo /etc/init.d/network restart
logout
#exit
login
#curl http://open.int.bbc.co.uk/ibl/v1/stubs/categories/arts/episodes.json?api_key=349cacfd
-check... (put laptop wifi on)
--- IF NOT worked:
switch off machine
- turn off eth1 as causing issues (ethernet cable interface)
----
Restart Apache
#restart
git config turn proxy off:
#sudo nano ~/.gitconfig
Use header over varnish:
pal-ct.dev.bbc.co.uk:6081/tv/reveal
pal-ct.dev.bbc.co.uk:6081/<whatever you want>
------ TO UNDO...(get on eth)
LOCAL PROXIES machine stuff
-proxy back on
#sudo nano ~/.gitconfig
#extaccess off
#reithproxies on
#sudo mv ~/ifcfgs/ifcfg-eth1 /etc/sysconfig/network-scripts/
#sudo nano /etc/sysconfig/network-scripts/ifcfg-eth2
#sudo /etc/init.d/varnish stop
#sudo /etc/init.d/network restart
logout
login
#curl http://open.int.bbc.co.uk/ibl/v1/stubs/categories/arts/episodes.json?api_key=349cacfd
===
=== /etc/sysconfig/network-scripts/ifcfg-eth2
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth2
# Below to get machine on eth
BOOTPROTO=dhcp #remove
#ME below..to get machine on wifi
#BOOTPROTO=static
#IPADDR=192.168.1.63
#GATEWAY=192.168.1.1
ONBOOT=yes
HWADDR=08:00:27:a6:1d:a1
====
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment