<p>Hi <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=16212586" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/joelsdc">@joelsdc</a> thanks so much for your suggestion! I have tried that now. If I'm correct, this will have the same behaviour as setting the source socket by changing <code>$fs</code> yourself, but then instead it's choosing the right socket automatically for you.</p>
<p>Unfortunately this is not entirely fixing my problem. It does allow me to route traffic inbound, but any traffic in the other direction will have the same problem again. In my case, the packet needs to be routed to a specific host where the floating public IP happens to be at that moment.</p>
<p>It just looks like Kamailio is not accepting any traffic from a <strong>private</strong> address on a listening socket with a <strong>public</strong> address, and vice versa. This was not the case with Kamailio <code>5.1.1</code> on Ubuntu <code>16.04</code> with the same Kamailio configuration.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1703#issuecomment-435351625">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZcUfN8_K_GpFtTjZBZsnGIZNHJ0Qks5urC5fgaJpZM4YIGmp">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZYVKi0xP7tMRFIHHKVIv8IvAmNRhks5urC5fgaJpZM4YIGmp.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@ThomasLobker in #1703: Hi @joelsdc thanks so much for your suggestion! I have tried that now. If I'm correct, this will have the same behaviour as setting the source socket by changing `$fs` yourself, but then instead it's choosing the right socket automatically for you.\r\n\r\nUnfortunately this is not entirely fixing my problem. It does allow me to route traffic inbound, but any traffic in the other direction will have the same problem again. In my case, the packet needs to be routed to a specific host where the floating public IP happens to be at that moment.\r\n\r\nIt just looks like Kamailio is not accepting any traffic from a **private** address on a listening socket with a **public** address, and vice versa. This was not the case with Kamailio `5.1.1` on Ubuntu `16.04` with the same Kamailio configuration."}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1703#issuecomment-435351625"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1703#issuecomment-435351625",
"url": "https://github.com/kamailio/kamailio/issues/1703#issuecomment-435351625",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [kamailio/kamailio] Issues with single Kamailio process in two networks/vlans (#1703)",
"sections": [
{
"text": "",
"activityTitle": "**Thomas Lobker**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@ThomasLobker",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1703,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1703\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/kamailio/kamailio/issues/1703#issuecomment-435351625"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 404777385\n}"
}
],
"themeColor": "26292E"
}
]</script>