User Tools

Site Tools


cluster:102

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
cluster:102 [2020/08/24 07:16]
hmeij07
cluster:102 [2020/08/24 07:19] (current)
hmeij07
Line 20: Line 20:
 And make sure the default route is set on all compute nodes. ​ And make sure the default route is set on all compute nodes. ​
  
-This is my second ​NAT story, for the first one look at [[cluster:51|The Story Of NAT, part 1]]+Note #2 
 + 
 +configured Shorewall on a cluster to do NAT through ​the head node. 
 + 
 +Edit the file /​etc/​shorewall/​snat ​  and add this line: 
 +<​code>​ 
 +MASQUERADE 192.168.0.0/​24 ​     eno1 
 +</​code>​ 
 +where 192.168.0 is the address range of your node interfaces - clearly you need to change this to fit 
 +en01 is the external interface on the head node 
 + 
 +My /​etc/​shorewall/​interfaces contains this (forwarding ib0) 
 +<​code>​ 
 +nat     ​eno1 ​   detect ​ dhcp 
 +nat     ​ib0 ​    ​detect ​ dhcp 
 +</​code>​ 
 +so substitute ib0 for your internal ethernet interface 
 + 
 + 
 + 
  
 ==== NAT Story, part 2 ==== ==== NAT Story, part 2 ====
 +
 +This is my second NAT story, for the first one look at [[cluster:​51|The Story Of NAT, part 1]]
 +
 +
  
 Writing this up so I will remember what I did, and why.  Basic problem is this: How do you make a filesystem in a public VLAN available on a private network? ​ One solution is to work with Network Address Translation,​ or NAT in short. ​ More information at [[http://​en.wikipedia.org/​wiki/​Network_address_translation|http://​en.wikipedia.org/​wiki/​Network_address_translation]] Writing this up so I will remember what I did, and why.  Basic problem is this: How do you make a filesystem in a public VLAN available on a private network? ​ One solution is to work with Network Address Translation,​ or NAT in short. ​ More information at [[http://​en.wikipedia.org/​wiki/​Network_address_translation|http://​en.wikipedia.org/​wiki/​Network_address_translation]]
cluster/102.txt · Last modified: 2020/08/24 07:19 by hmeij07