Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

IpTablesParserException Unknown option: "--random-fully" #9

Open
wlclass opened this issue Jan 12, 2022 · 2 comments
Open

IpTablesParserException Unknown option: "--random-fully" #9

wlclass opened this issue Jan 12, 2022 · 2 comments

Comments

@wlclass
Copy link

wlclass commented Jan 12, 2022

Thank you for a great job.馃憤
When I tested it on Ubuntu 20.04.3 LTS \ iptables v1.8.4 (legacy) .

var sys = new IpTablesSystem(new LocalFactory(), new IPTablesBinaryAdapter());
var chain = sys.GetChain("nat", "PREROUTING", 4);

I got an error :

IPTables.Net.Exceptions.IpTablesParserException: Error parsing rule:  -A KUBE-POSTROUTING -m comment --comment "kubernetes service traffic requiring SNAT" -j MASQUERADE --random-fully
 ---> IPTables.Net.Exceptions.IpTablesNetException: Unknown option: "--random-fully"
   at IPTables.Net.Iptables.Modules.CommandParser.FeedToSkip(Int32 position, Boolean not)
   at IPTables.Net.Iptables.IpTablesCommand.Parse(String rule, IpTablesSystem system, IpTablesChainSet chains, CommandParser& parserOut, Int32 version, String defaultTable)
   --- End of inner exception stack trace ---
   at IPTables.Net.Iptables.IpTablesCommand.Parse(String rule, IpTablesSystem system, IpTablesChainSet chains, CommandParser& parserOut, Int32 version, String defaultTable)
   at IPTables.Net.Iptables.IpTablesRule.Parse(String rule, IpTablesSystem system, IpTablesChainSet chains, Int32 version, String defaultTable, ChainCreateMode createChain)
   at IPTables.Net.Iptables.Adapter.Client.Helper.IPTablesSaveParser.GetRulesFromOutput(IpTablesSystem system, String output, String table, Int32 ipVersion, Boolean ignoreErrors)
   at IPTables.Net.Iptables.Adapter.Client.IPTablesBinaryAdapterClient.ListRules(String table)
   at IPTables.Net.IpTablesSystem.GetRules(IIPTablesAdapterClient client, String table)
   at IPTables.Net.IpTablesSystem.GetChain(IIPTablesAdapterClient client, String table, String chain)
   at IPTables.Net.IpTablesSystem.GetChain(String table, String chain, Int32  ipVersion)
@splitice
Copy link
Owner

splitice commented Jan 12, 2022

Yes an unsupported option to masqerade you can add. Acceptable PRs accepted.

@wlclass
Copy link
Author

wlclass commented Jan 13, 2022

ok,thanks.
I need to continue learning your project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants