We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I'm trying to create a new rule, but when doing IpTablesRule.Parse() it throws an exception Unknown option: "--source-port".
From what I can see in the code, I believe it's because the TcpModule is not being loaded into the CommandParser. Do I need to somehow Load the module first? How would I go about parsing other rules where the module is not loaded by default please? https://github.com/splitice/IPTables.Net/blob/master/IPTables.Net/Iptables/Modules/Tcp/TcpModule.cs
Thank you!
IPTables.Net.Exceptions.IpTablesNetException: Unknown option: "--source-port" 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)
The text was updated successfully, but these errors were encountered:
You load the module as the cli does under the hood (but transparently)
Sorry, something went wrong.
No branches or pull requests
Hi,
I'm trying to create a new rule, but when doing IpTablesRule.Parse() it throws an exception Unknown option: "--source-port".
From what I can see in the code, I believe it's because the TcpModule is not being loaded into the CommandParser. Do I need to somehow Load the module first? How would I go about parsing other rules where the module is not loaded by default please?
https://github.com/splitice/IPTables.Net/blob/master/IPTables.Net/Iptables/Modules/Tcp/TcpModule.cs
Thank you!
IPTables.Net.Exceptions.IpTablesNetException: Unknown option: "--source-port"
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)
The text was updated successfully, but these errors were encountered: