• No results found

Accelerator Control-System Network Diamond Light Source. Mike Leech, Controls Group Computer Systems Manager

N/A
N/A
Protected

Academic year: 2021

Share "Accelerator Control-System Network Diamond Light Source. Mike Leech, Controls Group Computer Systems Manager"

Copied!
17
0
0

Loading.... (view fulltext now)

Full text

(1)

Accelerator Control-System Network Securityy y @

Diamond Light Source

(2)

“Dream Accelerator Controls Network?”

++ Isolated

++ Isolated

+ No routing, Layer 2 only – Easy configuration and

h d l t

hardware replacement

+ Simple “Star” network – no daisy-chainingy g

+ Cheap

- No diverse routes for fibres

- No automatic hardware failover

(3)

Primary Network:

• All EPICS control traffic

• Only primary network needed to run machine. All services

S S OC ( )

contained within – DNS, NFS, NTP, IOC boot (FTP), Parameter archiving etc.

(4)

Devices on the Primary Network:

16 Linux Servers 11 Linux CA Gateways 45 Linux Workstations 298 VxWorks IOCs 222 Linux BPMs 4 Windows PCs

40 Linux/Windows Laptops 6 Other!!! (Atomic Clock GPIB adapter etc) 40 Linux/Windows Laptops 6 Other!!! (Atomic Clock, GPIB adapter, etc) 0 PLCs!!! (All PLCs hang off private networks on IOC second interface)

(5)

Secondary Network:

• All non EPICS traffic and traffic not essential to machine operation • Video cameras, scopes, terminal servers, IP phones, pump carts,

residual gas analysers, printers etc.es dua gas a a yse s, p e s e c

• Nearly identical to primary network except, routed to allow access to dual homed servers and workstations.

(6)

P f l it t l “ t f th b ” I t bl t t f l fi ll t

• Powerful security tools “out-of-the-box”: Iptables stateful firewall, tcpwrappers (hosts.allow), SSH encrypted login shell (copying, tunnelling and more).

• Open Source: Security flaws discovered and patched quickly. • Secure services: VSFTP, Apache, SELinux Jail.

• Total control over system configuration – rebuild your own kernel. • Security through obscurity: Less of a target for viruses and worms.Security through obscurity: Less of a target for viruses and worms. • No “Power Users” unless you configure elevated rights

(7)

Dual Homed Servers:

• SSH Bastion: Allows remote access during shutdown and emergency remote access during operation to fix faults

• EPICS Channel Access archiver: Allows office access to archived data. • Bootserver: Allows office read-only access to software (3.14).

(8)
(9)

Physical Access:

Network access points are restricted to the following locations: Network access points are restricted to the following locations: • Control and instrumentation areas (CIAs).

• Linac, booster and storage ring tunnels. • Computer room.

• Control room. • Comms roomsComms rooms. • NO labs or offices. • NO wireless.

All th d t l

(10)

Bridging (Stealth) firewall:

Close down both interfaces: > ifdown eth0; ifdown eth1 > ifconfig eth0 0.0.0.0 > ifconfig eth1 0.0.0.0 Create a bridge: > brctl addbr br0

Create a bridge: > brctl addbr br0

Add both interfaces: > brctl addif br0 eth0 > brctl addif br0 eth1

Turn on IP forwarding: > echo 1 > /proc/sys/net/ipv4/ip_forward Configure management interface:

Configure management interface:

(11)

eth1 eth0

Iptables firewall: > iptables -F

> iptables –P FORWARD DROP

> iptables –P INPUT DROP; IPTABLES –P OUTPUT DROP

> iptables –A INPUT –i lo ACCEPT; iptables –A OUTPUT –o lo ACCEPT

Restrict by interface:

> iptables –A FORWARD –i eth1 –o eth0 –p tcp --dport 22 –j ACCEPT

Restrict by IP address range:

> iptables -A FORWARD --destination 172.23.0.0/16 -p udp --dport 53 -j ACCEPT

Stateful:

(12)

Epics Channel Access Gateways:

• Enable machine parameters to be read from isolated primary network • One for office networks and one for each beamline network

• Application layer gateways No direct routing of IP packetsApplication layer gateways. No direct routing of IP packets • Unidirectional read-only gateway for office

• Bidirectional read-only gateway per beamline – no default route • CA monitor allows moving of ID gaps through read only gateway

(13)

Diamonds Public and Private Networks:

• Diamonds control, office, science and beamline networks are all NAT’d private networks • Some proxyed protocols eg. Real player, http, https

• A limited number of other protocols allowed out eg. ssh

• Diamond controls public network has a public address range and is directly routed to diamond private networks, but behind site firewall

• SSH bastion and reverse web proxy on public network

(14)

Apache Reverse Web Proxy:

• Enables one web server to provide content from another transparently.

• Gives encrypted and authenticated access to certain internal web pages. SuchGives encrypted and authenticated access to certain internal web pages. Such as, Elog, archiver, Machine status.

(15)

LoadModule proxy_module modules/mod_proxy.so

LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule headers_module modules/mod_headers.so LoadFile /usr/lib/libxml2.so

LoadFile /usr/lib/libxml2.so

LoadModule proxy_html_module modules/mod_proxy_html.so

<VirtualHost 123.123.123.123:443>

DocumentRoot /var/www/html/external

S N t l

ServerName external.com

ProxyPass /internal/ http://www.internal.com/ <Location /internal/>

ProxyPassReverse /

SetOutputFilter proxy-html

ProxyHTMLURLMap / /internal/ ProxyHTMLURLMap /internal /internal RequestHeader unset Accept-Encoding </Location>

</Location>

SSLProxyEngine on <Proxy *>

AuthType Basic

AuthName “External Area" AuthName “External Area" require valid-user

Allow from all </Proxy>

SSLEngine on

SSLCertificateFile /etc/httpd/conf/ssl.crt/external.crt SSLCertificateKeyFile /etc/httpd/conf/ssl.key/external.key </VirtualHost>

(16)

Acknowledgements

I would like to thank the following for their help:

Tim Hayton Original Network Design and Tender Mark Heron Original Network Design / Contract Manager Mark Heron Original Network Design / Contract Manager

Pete Leicester Channel Access Gateways

Peter Denison James Rowland LINUX / EPICS Gurus Peter Denison, James Rowland LINUX / EPICS Gurus Frederik Ferner, Tina Friedrich More LINUX Gurus Paul Amos Simon Lay Original Cable Installation Paul Amos, Simon Lay Original Cable Installation Chris Colbourne, Nico Rotolo Cabling Maintenance

The LINUX and EPICS communities The LINUX and EPICS communities

(17)

Network security may

seem like an impossible

seem like an impossible

struggle!

References

Related documents

In this task, you need to create a tunnel between a computer and a gateway, allowing the computer to access the private network that is connected to the gateway.. To demonstrate

Maggot meal has been included in broiler diets as a replacement for conventional protein sources, notably fish meal.. Most trials indicate that partial or even

Using Phone Book Manager  NOTE: This function is only available in Standard version. Please see Private Network if your gateway 

Using data from Dealogic and from public reports of Banco de España, the paper explores three main changes in the composition of assets and liabilities of Spanish banks during the

money. Most entrepreneurs do not realize that wealth does not come from work, but from the assets they build. For example, most people know Donald for his real Kforeurs do

A non-life insurance intermediary should disclose in general terms that it is paid for the service provided to the consumer by means of a remuneration arrangement with the

The undersigned certify that they have read and hereby recommend for acceptance the dissertation entitled “Consequences of tooth loss on oral function and need

It highlights three levels at which public health is capable of promoting clinical govern- ance: within the specialty of public health, across other National Health Service