Add 'manual' topology mode for manually specifying rspecs
[nodemanager-topo.git] / teardown-nat
1 #!/bin/sh
2
3 KEY=$1
4 ETUN1=natx$KEY
5
6 iptables -t mangle -D PREROUTING -i $ETUN1 -j CONNMARK --set-mark $KEY
7
8 ip rule del dev eth0 fwmark $KEY table $KEY
9
10 # Get rid of etun devices, only need name of one of them
11 ip link delete dev $ETUN1 
12
13
14