Skip to content

Commit

Permalink
Merge pull request moby#134 from shawnsi/98-natfix
Browse files Browse the repository at this point in the history
Fixing Issue moby#98: Adding DOCKER to output chain during iptables setup
  • Loading branch information
shin- committed Mar 22, 2013
2 parents 9fa3d89 + 3c6b8bb commit e4886a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions network.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ func (mapper *PortMapper) setup() error {
if err := iptables("-t", "nat", "-A", "PREROUTING", "-j", "DOCKER"); err != nil {
return errors.New("Unable to setup port networking: Failed to inject docker in PREROUTING chain")
}
if err := iptables("-t", "nat", "-A", "OUTPUT", "-j", "DOCKER"); err != nil {
return errors.New("Unable to setup port networking: Failed to inject docker in OUTPUT chain")
}
return nil
}

Expand Down

0 comments on commit e4886a9

Please sign in to comment.