netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [Bug 207401] New: vrf fwmark socket
       [not found] <bug-207401-100@https.bugzilla.kernel.org/>
@ 2020-04-22 15:44 ` Stephen Hemminger
  0 siblings, 0 replies; only message in thread
From: Stephen Hemminger @ 2020-04-22 15:44 UTC (permalink / raw)
  To: netdev

Looks like user error, not a bug.

On Wed, 22 Apr 2020 12:37:04 +0000
bugzilla-daemon@bugzilla.kernel.org wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=207401
> 
>             Bug ID: 207401
>            Summary: vrf fwmark socket
>            Product: Networking
>            Version: 2.5
>     Kernel Version: 5.5.11
>           Hardware: All
>                 OS: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: normal
>           Priority: P1
>          Component: IPV4
>           Assignee: stephen@networkplumber.org
>           Reporter: 1455793380@qq.com
>         Regression: No
> 
> add rule:
> #ip ru a fwmark 10000 table 10000 pref 900
> 
> and then add vrf and salve interface
> #ip link add vrf-1 type vrf table 10
> #ip link set dev vrf-1 up
> #ip link set dev ens19 master vrf-1
> 
> write a program socket bind mark 10000 to match the rule
> setsockopt(entry->fd, SOL_SOCKET, SO_MARK, &mark, sizeof(mark));
> 
> add ip and add route in table 10000
> # ip a a 5.5.5.5/24 dev ens20
> # ip r a 5.5.5.0/24 dev ens20 scope link table 10000 
> if I set src addr, then can't add this route 
> 
> visit the server,success
> #curl --interface 5.5.5.100
> but if I use the mark, my program can't visit the server
> kernel can't find my socket? return RST!
> 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-22 15:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <bug-207401-100@https.bugzilla.kernel.org/>
2020-04-22 15:44 ` [Bug 207401] New: vrf fwmark socket Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).