routeros: GRE ordering fix, src-nat example, logging cleanup - #33
Merged
Conversation
- Move the GRE accept rule to the top of the input chain, ahead of the drop-invalid rule (GRE has no conntrack, so its packets are marked invalid and would otherwise be dropped). Removed from the tunnel-protocol group. - NAT: add a commented src-nat example (preferred over masquerade on a static public address) alongside the masquerade rule. - Logging: suppress only dhcp by default; move the wireless/wifi topic to a commented example with an explanation. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UXAWR3BJ7yjfpE7STGCtvT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up refinements to the RouterOS initial-setup scripts (
initial-setup-ros6.rscandinitial-setup-ros7.rsc).Changes
inputchain, ahead of thedrop invalidrule. GRE has no connection tracking, so its packets are markedinvalidand would otherwise be dropped before reaching an accept rule. Removed GRE from the tunnel-protocol group (which now lists only L2TP / IPsec); the rule staysdisabled=yesas an example, with a comment explaining the placement.src-natexample next to themasqueraderule. On a static public addresssrc-natis preferred (it does not recompute the address per packet and does not drop connections on interface state changes). Uses203.0.113.1(documentation range) as a placeholder to replace.dhcp(topics=info,!dhcp). The wireless topic was moved to a commented example below — ROS7 uses!wifi(wifiwave2) or!wireless(legacy), ROS6 uses!wireless— with an explanation.Applied consistently to both the ROS6 and ROS7 variants.
🤖 Generated with Claude Code
Generated by Claude Code