LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-15-2024, 03:19 AM   #1
jesson
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Rep: Reputation: 0
I am unable to ping external zone IP from client PC. Public zone ip is reachable from client pc


Below is my setup information.

OS: Centos 9

System is connected with two network adapter. ens192 and ens224

ens192--> zone=public connected to Internet and it as 192.168.22.20/24 gateway: 192.168.22.1

ens224--> zone=external connected to LAN network and it as 192.168.33.100/24 no gateway

[root@localhost ~]# firewall-cmd --get-active-zones
external
interfaces: ens224
public
interfaces: ens192

I enabled masquerade on both the zones and verified the setting.

[root@localhost ~]# firewall-cmd --zone=public --query-masquerade
yes
[root@localhost ~]# firewall-cmd --zone=external --query-masquerade
yes
[root@localhost ~]#

nmcli output:
[root@localhost ~]# nmcli
ens192: connected to Profile 1
"VMware VMXNET3"
ethernet (vmxnet3), 00:50:56:A8:EA:97, hw, mtu 1500
ip4 default
inet4 192.168.22.20/24
route4 192.168.22.0/24 metric 100
route4 default via 192.168.22.1 metric 100

ens224: connected to ens224
"VMware VMXNET3"
ethernet (vmxnet3), 00:50:56:A8:8D:36, hw, mtu 1500
inet4 192.168.33.100/24
route4 192.168.33.0/24 metric 101



is there any routing or natting needs to be done to route the external zone traffic to public.zone network adapter. any suggestion or help is much appreciated
 
Old 04-15-2024, 01:43 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,143

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
What's the output of
Code:
sysctl net.ipv4.ip_forward
 
Old 04-16-2024, 12:12 AM   #3
jesson
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Original Poster
Rep: Reputation: 0
[root@repovm ~]# cat /proc/sys/net/ipv4/ip_forward
1


Problem fixed after adding the ip routing rules.
 
  


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
I find file zone in the slave zone to the do a transfer of zone from Windows Server 2012 as master dns and CentOS as slave DNS. To learn Linux - Newbie 1 09-02-2016 09:36 AM
Web server with public IP address not reachable via domain name in the web browser floorripper Linux - Server 11 08-09-2013 09:55 PM
Which zone bind dns work either in forward zone are reverse zone sanjay87 Linux - Server 2 06-05-2012 04:21 AM
I cannot ping with command 'ping IP' address but can ping with 'ping IP -I eth0' sanketmlad Linux - Networking 2 07-15-2011 05:32 AM
Multiple public IP's - not reachable from inside Avdaga Linux - Networking 10 02-07-2009 07:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:42 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