Skip to content

Commit

Permalink
dnsmasq invocation cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
singe committed May 12, 2016
1 parent e933566 commit 379d85a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion run-mana/start-nat-full.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ sleep 5
ifconfig $phy 10.0.0.1 netmask 255.255.255.0
route add -net 10.0.0.0 netmask 255.255.255.0 gw 10.0.0.1

dnsmasq -C /etc/mana-toolkit/dnsmasq-dhcpd.conf $phy
dnsmasq -z -C /etc/mana-toolkit/dnsmasq-dhcpd.conf -i $phy -I lo

echo '1' > /proc/sys/net/ipv4/ip_forward
iptables --policy INPUT ACCEPT
Expand Down
2 changes: 1 addition & 1 deletion run-mana/start-nat-simple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sleep 5
ifconfig $phy 10.0.0.1 netmask 255.255.255.0
route add -net 10.0.0.0 netmask 255.255.255.0 gw 10.0.0.1

dnsmasq -C /etc/mana-toolkit/dnsmasq-dhcpd.conf $phy
dnsmasq -z -C /etc/mana-toolkit/dnsmasq-dhcpd.conf -i $phy -I lo

echo '1' > /proc/sys/net/ipv4/ip_forward
iptables --policy INPUT ACCEPT
Expand Down
2 changes: 1 addition & 1 deletion run-mana/start-noupstream-eaponly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ifconfig $phy
ifconfig $phy 10.0.0.1 netmask 255.255.255.0
route add -net 10.0.0.0 netmask 255.255.255.0 gw 10.0.0.1

dnsmasq -C /etc/mana-toolkit/dnsmasq-dhcpd.conf $phy
dnsmasq -z -C /etc/mana-toolkit/dnsmasq-dhcpd.conf -i $phy -I lo
dnsspoof -i $phy -f /etc/mana-toolkit/dnsspoof.conf&
service apache2 start
stunnel4 /etc/mana-toolkit/stunnel.conf
Expand Down

0 comments on commit 379d85a

Please sign in to comment.