Ask / Submit
1

TTL mangle support

asked 2019-06-03 02:44:15 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2019-06-03 02:44:15 +0300

Kyle gravatar image

Hello all! This may not be the appropriate place to ask this, so please let me know.

I've run into a snag with iptables on my XA2 running Sailfish X. I'm trying to modify the incoming and outgoing TTL values on one interface. Here's what I've got so far:

[root@Sailfish nemo]# iptables -t mangle -I POSTROUTING -o rmnet_data0 -j TTL --ttl-set 65 iptables v1.8.2 (legacy): unknown option "--ttl-set" Try `iptables -h' or 'iptables --help' for more information.

I've already installed iptables-devel Does anyone know of any way to add support for TTL mangling or could point me in the right direction?

edit retag flag offensive close delete

Comments

The package iptables-devel is only necessary if you want to build software that needs iptables C header files. You can safely remove that on a typical end user phone.

Maus ( 2019-06-03 12:16:27 +0300 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2019-06-03 10:12:13 +0300

Maus gravatar image

The Jolla kernel (at least on J1/JP1301) is able to use matching rules with iptables using TTL, but unable to modify the TTL:

[nemo@Sailfish ~]$ zcat /proc/config.gz | egrep '_NF.*TTL'
CONFIG_IP_NF_MATCH_TTL=y
# CONFIG_IP_NF_TARGET_TTL is not set
edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2019-06-03 02:44:15 +0300

Seen: 100 times

Last updated: Jun 03