You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I have many ip of one interface card(Centos 7) as like below
eth0 10.10.10.10
eth0:0 10.10.10.11
eth0:1 10.10.10.12
eth0:2 10.10.10.13
but, if i connect 10.10.10.12 then all packet's are output on 10.10.10.10, not 10.10.10.12
how can i output packet to client request ip (of request port)
ex)
8081 port 10.10.10.11 <-> client A
8082 port 10.10.10.12 <-> client B
8083 port 10.10.10.13 <-> client C
Thanks
The text was updated successfully, but these errors were encountered:
I think this could be accomplished by getting the local address with Conn.LocalAddr() and setting the laddr on DialTCP() and DialUDP() (Dialer.Dial() doesn't have the laddr option).
Server can't use the IPv6 address to establish the IPv4 connection.
So we should check if the IP version of the target matches the IP version of the client. If it matches, we can use the IP the client connected to. Otherwise use whatever the system picks for you.
Hi
I have many ip of one interface card(Centos 7) as like below
eth0 10.10.10.10
eth0:0 10.10.10.11
eth0:1 10.10.10.12
eth0:2 10.10.10.13
but, if i connect 10.10.10.12 then all packet's are output on 10.10.10.10, not 10.10.10.12
how can i output packet to client request ip (of request port)
ex)
8081 port 10.10.10.11 <-> client A
8082 port 10.10.10.12 <-> client B
8083 port 10.10.10.13 <-> client C
Thanks
The text was updated successfully, but these errors were encountered: