LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-07-2023, 08:30 PM   #1
bsparks
LQ Newbie
 
Registered: Oct 2017
Posts: 4

Rep: Reputation: Disabled
How to check TTL for multicast on Centos 7 ?


Hi,
I have Centos 7 VM. Network guys are saying that TTL for multicast of this VM is set to 25, hence firewall assumes it is DDOS and drops the packets. On OS level, is there a way to know, what is TTL ?
I want to set it to 10. I found one this URL , and it gives me two options to set :
Code:
# iptables -t mangle -A OUTPUT -d <multicast_ip_addr> -j TTL --ttl-set 64
Code:
# firewall-cmd --direct --add-rule ipv4 mangle OUTPUT 0 -d <multicast_ip_addr> -j TTL --ttl-set 64
But I do not have firewall and iptables enabled on my servers. Is there any different way to set it to 10 ?
Please suggest.
Thanks
 
Old 12-15-2023, 09:47 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,341

Rep: Reputation: Disabled
iptables doesn't have to be enabled, it's part of the Linux kernel.

Try the iptables command (sudo will probably be required), it should work. How to add it to the CentOS startup scripts to ensure it sticks across reboots is another matter.
 
Old 12-20-2023, 07:35 AM   #3
tuxthegreat
Member
 
Registered: Mar 2018
Distribution: Ubuntu Mate, OSX, Win10, ODROID-N2+
Posts: 176

Rep: Reputation: Disabled
To save a iptables firewall configuration that is saved and is there after a reboot you can try
Code:
netfilter-persistent save
It works on my Ubuntu install.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Set multicast UDP hop value or TTL PencilBob Linux - Networking 3 10-17-2016 09:15 AM
Resident Multicast Sockets on a Multicast Router bryanj4 Linux - Networking 0 03-25-2015 12:45 AM
IPv6 multicast address used with VLC and multicast address routing merrittr Linux - Networking 2 01-28-2015 01:26 PM
IPv6 multicast listener on a Linux box acting as multicast router maxtux Linux - Networking 0 04-01-2012 09:52 AM
how to check the data transfer of multicast protocols abirami Linux - Networking 1 09-05-2004 02:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration