diff --git a/redirect_linux.go b/redirect_linux.go index cafdd61..e5c8f27 100644 --- a/redirect_linux.go +++ b/redirect_linux.go @@ -134,8 +134,10 @@ func (r *autoRedirect) Start() error { startAt := time.Now() var err error if r.useNFTables { + r.cleanupNFTables() err = r.setupNFTables() } else { + r.cleanupIPTables() err = r.setupIPTables() } if err != nil {