-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrun_gwa_netns.sh
executable file
·36 lines (34 loc) · 2.15 KB
/
run_gwa_netns.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
if [[ $UID != 0 ]]; then
echo "Please run this script with sudo:"
echo "sudo $0 $*"
exit 1
fi
echo "Starting Realm Gateway as gwa.demo"
cd src
./rgw.py --name gwa.demo \
--dns-soa gwa.demo. 0.168.192.in-addr.arpa. 1.64.100.in-addr.arpa. \
--dns-server-local 127.0.0.1 53 \
--dns-server-lan 192.168.0.1 53 \
--dns-server-wan 100.64.1.130 53 \
--dns-resolver 8.8.8.8 53 \
--ddns-server 127.0.0.2 53 \
--dns-timeout 0.010 0.100 0.200 \
--pool-serviceip 100.64.1.130/32 \
--pool-cpoolip 100.64.1.133/32 100.64.1.134/32 100.64.1.135/32 \
--ipt-cpool-queue 1 \
--ipt-cpool-chain CIRCULAR_POOL \
--ipt-host-chain CUSTOMER_POLICY \
--ipt-host-unknown CUSTOMER_POLICY_ACCEPT \
--ipt-policy-order PACKET_MARKING NAT mREJECT ADMIN_PREEMPTIVE \
GROUP_POLICY CUSTOMER_POLICY \
ADMIN_POLICY ADMIN_POLICY_DHCP \
ADMIN_POLICY_HTTP ADMIN_POLICY_DNS \
GUEST_SERVICES \
--ips-hosts IPS_SUBSCRIBERS \
--ipt-markdnat \
--ipt-flush \
--network-api-url http://127.0.0.1:8081/ \
--repository-subscriber-folder ../config.d/gwa.demo.subscriber.d/ \
--repository-policy-folder ../config.d/gwa.demo.policy.d/ \
--repository-api-url http://127.0.0.1:8082/