Skip to content

Commit

Permalink
set actual internal cidr as netrestrict
Browse files Browse the repository at this point in the history
  • Loading branch information
ckartik committed Sep 5, 2024
1 parent a0dbb57 commit 2ec238c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,34 +35,6 @@ job "{{ job.name }}" {
{% endfor %}
}

config {
cni_config = jsonencode({
"cniVersion": "0.4.0",
"name": "geth-network",
"plugins": [
{
"type": "bridge",
"bridge": "br0",
"isGateway": true,
"ipMasq": true,
"ipam": {
"type": "host-local",
"subnet": "172.16.30.0/24",
"routes": [
{
"dst": "0.0.0.0/0"
}
]
}
},
{
"type": "portmap",
"capabilities": { "portMappings": true }
}
]
})
}

task "node" {
driver = "exec"

Expand Down
8 changes: 4 additions & 4 deletions infrastructure/nomad/playbooks/variables/profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
env:
ip: 0.0.0.0
public_ip: "{{ ansible_facts['default_ipv4']['address'] }}"
net_restrict: 172.16.30.0/8
net_restrict: 172.26.64.0/20
type: bootnode

mev_commit_geth_signer_node1: &mev_commit_geth_signer_node1_job
Expand All @@ -79,7 +79,7 @@ jobs:
static: 30311
env:
ip: 127.0.0.1
net_restrict: 172.16.30.0/8
net_restrict: 172.26.64.0/20
type: signer
port: 30311

Expand All @@ -100,7 +100,7 @@ jobs:
static: 30312
env:
ip: 127.0.0.1
net_restrict: 172.16.30.0/8
net_restrict: 172.26.64.0/20
type: signer
port: 30312

Expand All @@ -121,7 +121,7 @@ jobs:
static: 30313
env:
ip: 127.0.0.1
net_restrict: 172.16.30.0/24
net_restrict: 172.26.64.0/20
type: signer
port: 30313

Expand Down

0 comments on commit 2ec238c

Please sign in to comment.