• We did not send an email asking for donations - please read this post.

how to configure a network for public ip and local ip for a single host: in Suse 15.3 linux

Kaushikc

New Member
Joined
Sep 9, 2022
Messages
1
Reaction score
0
Credits
17
I am new bee to Linux and networking:

i would like to configure ex: [local ip 192.168.10.xx ] and [public ip 103.44.xx.xx] for a single host(MyServer1)
i am able to access fine from public, unfortunately when i am accessing from the local most of the times packets are going through public ip.

i doubt the rules having issues, is this the below are fine or something need to be added more. attached yast2 screen shot also.


MyServer1:~ # ip route
default via 103.44.A.XYZ dev em1
103.44.A.0/24 dev em1 proto kernel scope link src 103.44.A.ABC
192.168.10.0/24 dev em3 proto kernel scope link src 192.168.10.XZ
MyServer1:~ #

YAST2 screens attached. i guess there should be a way where public IP packets always should go through public Gateway and the same way local traffic should go through local gateway ip.

could you please shed some light on it
 

Attachments

  • NetworkPublic_local_IP_Access_Issue.jpg
    NetworkPublic_local_IP_Access_Issue.jpg
    138.5 KB · Views: 25
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Staff online

Members online


Top