HF RL Explorer

Task: Fix a Netfilter Kernel Module for Destination NAT TCP Connection

Task: Fix a Netfilter Kernel Module for Destination NAT TCP Connection: a task in Terminal-Lego-15k (Harbor dataset). You are working with a Linux kernel module that implements destination NAT (DNAT) behavior using Netfilter hooks. The module hooks into NF INET PRE ROUTING and NF INET LOCAL OUT to…

The task

You are working with a Linux kernel module that implements destination NAT (DNAT) behavior using Netfilter hooks. The module hooks into `NF_INET_PRE_ROUTING` and `NF_INET_LOCAL_OUT` to modify the destination IP address of outgoing TCP packets and recalculate checksums.

Part of PrimeIntellect/Terminal-Lego-15k.