How can i change the ttl to the outgoing packages, and to the incoming packages ?
Topic: TTL help please.
The content of this topic has been archived on 30 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.
ipkg install iptables-mod-ipopt kmod-ipt-ipopt
be sure ipt_TTL is loaded on startup
add this two lines to /etc/firewall.user
### mangle
## ttl
iptables -t mangle -A PREROUTING -j TTL --ttl-inc 1
iptables -t mangle -A POSTROUTING -j TTL --ttl-inc 1
Hi everyone
ipkg install iptables-mod-ipopt kmod-ipt-ipopt
be sure ipt_TTL is loaded on startup
I have an wrt160nl and i use this firmware: http://downloads.openwrt.org/snapshots/ … uashfs.bin
I installed iptables-mod-ipopt kmod-ipt-ipopt but there is no ipt_TTL
I used lsmod:
Module Size Used by Not tainted
nf_nat_tftp 432 0
nf_conntrack_tftp 2400 1 nf_nat_tftp
nf_nat_irc 816 0
nf_conntrack_irc 2512 1 nf_nat_irc
nf_nat_ftp 1328 0
nf_conntrack_ftp 4704 1 nf_nat_ftp
xt_HL 1280 0
xt_hl 896 0
xt_MARK 496 0
ipt_ECN 1312 0
xt_CLASSIFY 496 0
xt_time 1552 0
xt_tcpmss 992 0
xt_statistic 816 0
xt_mark 512 0
xt_length 672 0
ipt_ecn 976 0
xt_DSCP 1392 0
xt_dscp 1008 0
ipt_MASQUERADE 992 2
iptable_nat 2256 1
nf_nat 10160 5 nf_nat_tftp,nf_nat_irc,nf_nat_ftp,ipt_MASQUERADE ,iptable_nat
xt_NOTRACK 544 0
iptable_raw 656 1
xt_state 768 3
nf_conntrack_ipv4 7408 6 iptable_nat,nf_nat
nf_defrag_ipv4 624 1 nf_conntrack_ipv4
nf_conntrack 37424 12 nf_nat_tftp,nf_conntrack_tftp,nf_nat_irc,nf_conn track_irc,nf_nat_ftp,nf_conntrack_ftp,ipt_MASQUERADE,iptable_nat,nf_nat,xt_NOTRA CK,xt_state,nf_conntrack_ipv4
ehci_hcd 31120 0
ipt_REJECT 1680 2
xt_TCPMSS 1856 2
ipt_LOG 4176 0
xt_multiport 1792 0
xt_mac 576 0
xt_limit 1008 1
iptable_mangle 992 0
iptable_filter 768 1
ip_tables 8480 4 iptable_nat,iptable_raw,iptable_mangle,iptable_f ilter
xt_tcpudp 1760 13
x_tables 9296 25 xt_HL,xt_hl,xt_MARK,ipt_ECN,xt_CLASSIFY,xt_time, xt_tcpmss,xt_statistic,xt_mark,xt_length,ipt_ecn,xt_DSCP,xt_dscp,ipt_MASQUERADE, iptable_nat,xt_NOTRACK,xt_state,ipt_REJECT,xt_TCPMSS,ipt_LOG,xt_multiport,xt_mac ,xt_limit,ip_tables,xt_tcpudp
ppp_async 6400 0
ath9k 63264 0
ath9k_common 1840 1 ath9k
ath9k_hw 201024 2 ath9k,ath9k_common
ath 6944 2 ath9k,ath9k_hw
usbcore 97424 2 ehci_hcd
nls_base 4800 1 usbcore
mac80211 148480 2 ath9k,ath9k_common
cfg80211 111088 4 ath9k,ath9k_common,ath,mac80211
compat_firmware_class 5152 0
compat 432 0
crc_ccitt 976 1 ppp_async
arc4 816 2
aes_generic 30256 2
deflate 1360 0
ecb 1328 2
cbc 2016 0
pppoe 8304 2
pppox 1216 1 pppoe
ppp_generic 18848 7 ppp_async,pppoe,pppox
slhc 4176 1 ppp_generic
leds_gpio 1456 0
button_hotplug 2544 0
gpio_buttons 1968 0
input_polldev 1360 1 gpio_buttons
input_core 16896 4 button_hotplug,gpio_buttons,input_polldev
Can someone advise me how to increase TTL?
Thanks
(Last edited by gogu_beb on 15 Feb 2010, 12:13)
Recompile yourself with this patch https://dev.openwrt.org/attachment/tick … ixes.patch
or use mine package:
http://eko.one.pl/openwrt/kamikaze/trun … ar71xx.ipk
http://eko.one.pl/openwrt/kamikaze/trun … ar71xx.ipk
Can you tell me how to recompile with that patch please.
What are the steps to compile the patch
Thanks
(Last edited by gogu_beb on 15 Feb 2010, 17:27)
Full system with patch, not just a patch.
patch -p0 < 100-ttl_fixes.patch
in the main source directory
The patch works great on backfire 10.03, but gives some errors on trunk version.
If someone can help ...
The TTL target is still not included in Backfire 10.03.1-RC5...
I'm unhappy.
I created a patch for trunk, it provides you with TTL match+target and CT target.
The discussion might have continued from here.