Skip to content

Commit

Permalink
some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Svedrin committed Mar 29, 2019
1 parent 31d26a1 commit 22f10f8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/generate_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def generate_setup():
# At the end, every combination gets passed into render_cmd which
# turns it into a string.

def iptables(cmd=None):
def iptables():
yield dict(cmd="iptables")
yield dict(cmd="ip6tables")

Expand Down Expand Up @@ -403,7 +403,12 @@ def render_cmd(cmd):
# Generate rules to implement virtual services

for virtual in all_virtuals:
def iptables(cmd=None):
# We basically do the same thing we did for rules, but for each entry in virtuals,
# we need to create _two_ rules:
# One for PREROUTING to perform the DNAT on the external IPs, and
# one for FORWARD to allow the traffic that results from this.

def iptables():
yield dict(cmd="iptables")
yield dict(cmd="ip6tables")

Expand Down

0 comments on commit 22f10f8

Please sign in to comment.