* router and masquerade
@ 2013-09-08 23:41 budi wibowo
2013-09-11 15:13 ` Tom van Leeuwen
0 siblings, 1 reply; 6+ messages in thread
From: budi wibowo @ 2013-09-08 23:41 UTC (permalink / raw)
To: netfilter
Hi
i have question and i hope the question is on the right list .
i setup PC router running on ubuntu 10.12, since it is router all IP
address are public IP.
Topology will be like this
Router_to_Intl Router_to_local_IX
| |
| |
| |
| |
\ /
\ /
\ /
\ /
\ /
Distribution Router
|
|
Client
on Router_to_Intl i have define rule to ACCEPT all INPUT OUTPUT and FORWARD
chain, also have enable ip_forward in sysctl.
the result is client cant ping outside, but when i define MASQUERADE, ping
and connection to internet are working normally.
i dont want masquerade happen in this case
anything missing on my configuration?
Regards
Budi Wibowo
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: router and masquerade 2013-09-08 23:41 router and masquerade budi wibowo @ 2013-09-11 15:13 ` Tom van Leeuwen 2013-09-12 4:29 ` budi wibowo 0 siblings, 1 reply; 6+ messages in thread From: Tom van Leeuwen @ 2013-09-11 15:13 UTC (permalink / raw) To: budi wibowo; +Cc: netfilter@vger.kernel.org With "outside" you mean an ip on internet? What IP address does your client have that you don't want to MASQUERADE. Sounds like the outside world doesn't have a route to get back to your client. Regards, Tom On 09/09/2013 01:41 AM, budi wibowo wrote: > Hi > i have question and i hope the question is on the right list . > > i setup PC router running on ubuntu 10.12, since it is router all IP > address are public IP. > Topology will be like this > > > > Router_to_Intl Router_to_local_IX > | | > | | > | | > | | > \ / > \ / > \ / > \ / > \ / > Distribution Router > | > | > Client > > on Router_to_Intl i have define rule to ACCEPT all INPUT OUTPUT and FORWARD > chain, also have enable ip_forward in sysctl. > the result is client cant ping outside, but when i define MASQUERADE, ping > and connection to internet are working normally. > i dont want masquerade happen in this case > > > anything missing on my configuration? > > Regards > > Budi Wibowo > -- > To unsubscribe from this list: send the line "unsubscribe netfilter" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: router and masquerade 2013-09-11 15:13 ` Tom van Leeuwen @ 2013-09-12 4:29 ` budi wibowo 2013-09-12 15:19 ` Tom van Leeuwen 0 siblings, 1 reply; 6+ messages in thread From: budi wibowo @ 2013-09-12 4:29 UTC (permalink / raw) To: Tom van Leeuwen; +Cc: netfilter@vger.kernel.org outside IP is 8.8.8.8 google DNS. the ubuntu running BIRD for BGP and bgp connection is established. for ubuntu all search result after enable ip forwarding then do masquerade. and then i conclude that ubuntu cant be used as BGP core router, only can do routing is interface is masquerade. change OS to freebsd 9.1 and everything is working perfectly. Bird is working and no Nat required On Wed, Sep 11, 2013 at 10:13 PM, Tom van Leeuwen <tom.van.leeuwen@saasplaza.com> wrote: > With "outside" you mean an ip on internet? > What IP address does your client have that you don't want to MASQUERADE. > > Sounds like the outside world doesn't have a route to get back to your > client. > > Regards, > Tom > > > On 09/09/2013 01:41 AM, budi wibowo wrote: >> >> Hi >> i have question and i hope the question is on the right list . >> >> i setup PC router running on ubuntu 10.12, since it is router all IP >> address are public IP. >> Topology will be like this >> >> >> >> Router_to_Intl Router_to_local_IX >> | | >> | | >> | | >> | | >> \ / >> \ / >> \ / >> \ / >> \ / >> Distribution Router >> | >> | >> Client >> >> on Router_to_Intl i have define rule to ACCEPT all INPUT OUTPUT and >> FORWARD >> chain, also have enable ip_forward in sysctl. >> the result is client cant ping outside, but when i define MASQUERADE, ping >> and connection to internet are working normally. >> i dont want masquerade happen in this case >> >> >> anything missing on my configuration? >> >> Regards >> >> Budi Wibowo >> -- >> To unsubscribe from this list: send the line "unsubscribe netfilter" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: router and masquerade 2013-09-12 4:29 ` budi wibowo @ 2013-09-12 15:19 ` Tom van Leeuwen 2013-09-12 15:29 ` Tom van Leeuwen 0 siblings, 1 reply; 6+ messages in thread From: Tom van Leeuwen @ 2013-09-12 15:19 UTC (permalink / raw) To: budi wibowo; +Cc: netfilter@vger.kernel.org Hi Budi, I have experience running ubuntu10.04 and ubuntu12.04 as BGP routers and it works perfectly. They are not doing any NAT. It must be your configuration. Kind regards, Tom van Leeuwen On 09/12/2013 06:29 AM, budi wibowo wrote: > outside IP is 8.8.8.8 google DNS. > the ubuntu running BIRD for BGP and bgp connection is established. > for ubuntu all search result after enable ip forwarding then do masquerade. > and then i conclude that ubuntu cant be used as BGP core router, only > can do routing is interface is masquerade. > change OS to freebsd 9.1 and everything is working perfectly. > Bird is working and no Nat required > > > On Wed, Sep 11, 2013 at 10:13 PM, Tom van Leeuwen > <tom.van.leeuwen@saasplaza.com> wrote: >> With "outside" you mean an ip on internet? >> What IP address does your client have that you don't want to MASQUERADE. >> >> Sounds like the outside world doesn't have a route to get back to your >> client. >> >> Regards, >> Tom >> >> >> On 09/09/2013 01:41 AM, budi wibowo wrote: >>> Hi >>> i have question and i hope the question is on the right list . >>> >>> i setup PC router running on ubuntu 10.12, since it is router all IP >>> address are public IP. >>> Topology will be like this >>> >>> >>> >>> Router_to_Intl Router_to_local_IX >>> | | >>> | | >>> | | >>> | | >>> \ / >>> \ / >>> \ / >>> \ / >>> \ / >>> Distribution Router >>> | >>> | >>> Client >>> >>> on Router_to_Intl i have define rule to ACCEPT all INPUT OUTPUT and >>> FORWARD >>> chain, also have enable ip_forward in sysctl. >>> the result is client cant ping outside, but when i define MASQUERADE, ping >>> and connection to internet are working normally. >>> i dont want masquerade happen in this case >>> >>> >>> anything missing on my configuration? >>> >>> Regards >>> >>> Budi Wibowo >>> -- >>> To unsubscribe from this list: send the line "unsubscribe netfilter" in >>> the body of a message to majordomo@vger.kernel.org >>> More majordomo info at http://vger.kernel.org/majordomo-info.html >> ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: router and masquerade 2013-09-12 15:19 ` Tom van Leeuwen @ 2013-09-12 15:29 ` Tom van Leeuwen 2013-09-12 23:25 ` budi wibowo 0 siblings, 1 reply; 6+ messages in thread From: Tom van Leeuwen @ 2013-09-12 15:29 UTC (permalink / raw) To: budi wibowo; +Cc: netfilter@vger.kernel.org I'm thinking that maybe rp_filter (reverse path filter) is biting you, especially since you have multiple upstream providers. Please check current setings: sysctl -a 2>/dev/null | grep '\.rp_filter' And set them to zero (for the appropriate) interfaces: sysctl -a 2>/dev/null | grep '\.rp_filter' | while read key rest ; do sudo sysctl $key=0;done This is what an interface looks like in my ubuntu12.04 bgp server: auto eth0 iface eth0 inet static address 1.1.1.1 netmask 255.255.255.0 ip-proxy-arp 0 ip-rp-filter 0 Kind regards, Tom On 09/12/2013 05:19 PM, Tom van Leeuwen wrote: > Hi Budi, > > I have experience running ubuntu10.04 and ubuntu12.04 as BGP routers and > it works perfectly. > They are not doing any NAT. > > It must be your configuration. > > Kind regards, > Tom van Leeuwen > > On 09/12/2013 06:29 AM, budi wibowo wrote: >> outside IP is 8.8.8.8 google DNS. >> the ubuntu running BIRD for BGP and bgp connection is established. >> for ubuntu all search result after enable ip forwarding then do masquerade. >> and then i conclude that ubuntu cant be used as BGP core router, only >> can do routing is interface is masquerade. >> change OS to freebsd 9.1 and everything is working perfectly. >> Bird is working and no Nat required >> >> >> On Wed, Sep 11, 2013 at 10:13 PM, Tom van Leeuwen >> <tom.van.leeuwen@saasplaza.com> wrote: >>> With "outside" you mean an ip on internet? >>> What IP address does your client have that you don't want to MASQUERADE. >>> >>> Sounds like the outside world doesn't have a route to get back to your >>> client. >>> >>> Regards, >>> Tom >>> >>> >>> On 09/09/2013 01:41 AM, budi wibowo wrote: >>>> Hi >>>> i have question and i hope the question is on the right list . >>>> >>>> i setup PC router running on ubuntu 10.12, since it is router all IP >>>> address are public IP. >>>> Topology will be like this >>>> >>>> >>>> >>>> Router_to_Intl Router_to_local_IX >>>> | | >>>> | | >>>> | | >>>> | | >>>> \ / >>>> \ / >>>> \ / >>>> \ / >>>> \ / >>>> Distribution Router >>>> | >>>> | >>>> Client >>>> >>>> on Router_to_Intl i have define rule to ACCEPT all INPUT OUTPUT and >>>> FORWARD >>>> chain, also have enable ip_forward in sysctl. >>>> the result is client cant ping outside, but when i define MASQUERADE, ping >>>> and connection to internet are working normally. >>>> i dont want masquerade happen in this case >>>> >>>> >>>> anything missing on my configuration? >>>> >>>> Regards >>>> >>>> Budi Wibowo >>>> -- >>>> To unsubscribe from this list: send the line "unsubscribe netfilter" in >>>> the body of a message to majordomo@vger.kernel.org >>>> More majordomo info at http://vger.kernel.org/majordomo-info.html > -- > To unsubscribe from this list: send the line "unsubscribe netfilter" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: router and masquerade 2013-09-12 15:29 ` Tom van Leeuwen @ 2013-09-12 23:25 ` budi wibowo 0 siblings, 0 replies; 6+ messages in thread From: budi wibowo @ 2013-09-12 23:25 UTC (permalink / raw) To: Tom van Leeuwen; +Cc: netfilter@vger.kernel.org Hi Tom thx a lot for your suggestion, i didnt put the ip proxy arp and ip rp filter, i will try again and revert back regards budi On Thu, Sep 12, 2013 at 10:29 PM, Tom van Leeuwen <tom.van.leeuwen@saasplaza.com> wrote: > I'm thinking that maybe rp_filter (reverse path filter) is biting you, > especially since you have multiple upstream providers. > > Please check current setings: > sysctl -a 2>/dev/null | grep '\.rp_filter' > > And set them to zero (for the appropriate) interfaces: > sysctl -a 2>/dev/null | grep '\.rp_filter' | while read key rest ; do sudo > sysctl $key=0;done > > This is what an interface looks like in my ubuntu12.04 bgp server: > auto eth0 > iface eth0 inet static > address 1.1.1.1 > netmask 255.255.255.0 > ip-proxy-arp 0 > ip-rp-filter 0 > > Kind regards, > Tom > > > On 09/12/2013 05:19 PM, Tom van Leeuwen wrote: >> >> Hi Budi, >> >> I have experience running ubuntu10.04 and ubuntu12.04 as BGP routers and >> it works perfectly. >> They are not doing any NAT. >> >> It must be your configuration. >> >> Kind regards, >> Tom van Leeuwen >> >> On 09/12/2013 06:29 AM, budi wibowo wrote: >>> >>> outside IP is 8.8.8.8 google DNS. >>> the ubuntu running BIRD for BGP and bgp connection is established. >>> for ubuntu all search result after enable ip forwarding then do >>> masquerade. >>> and then i conclude that ubuntu cant be used as BGP core router, only >>> can do routing is interface is masquerade. >>> change OS to freebsd 9.1 and everything is working perfectly. >>> Bird is working and no Nat required >>> >>> >>> On Wed, Sep 11, 2013 at 10:13 PM, Tom van Leeuwen >>> <tom.van.leeuwen@saasplaza.com> wrote: >>>> >>>> With "outside" you mean an ip on internet? >>>> What IP address does your client have that you don't want to MASQUERADE. >>>> >>>> Sounds like the outside world doesn't have a route to get back to your >>>> client. >>>> >>>> Regards, >>>> Tom >>>> >>>> >>>> On 09/09/2013 01:41 AM, budi wibowo wrote: >>>>> >>>>> Hi >>>>> i have question and i hope the question is on the right list . >>>>> >>>>> i setup PC router running on ubuntu 10.12, since it is router all IP >>>>> address are public IP. >>>>> Topology will be like this >>>>> >>>>> >>>>> >>>>> Router_to_Intl Router_to_local_IX >>>>> | | >>>>> | | >>>>> | | >>>>> | | >>>>> \ / >>>>> \ / >>>>> \ / >>>>> \ / >>>>> \ / >>>>> Distribution Router >>>>> | >>>>> | >>>>> Client >>>>> >>>>> on Router_to_Intl i have define rule to ACCEPT all INPUT OUTPUT and >>>>> FORWARD >>>>> chain, also have enable ip_forward in sysctl. >>>>> the result is client cant ping outside, but when i define MASQUERADE, >>>>> ping >>>>> and connection to internet are working normally. >>>>> i dont want masquerade happen in this case >>>>> >>>>> >>>>> anything missing on my configuration? >>>>> >>>>> Regards >>>>> >>>>> Budi Wibowo >>>>> -- >>>>> To unsubscribe from this list: send the line "unsubscribe netfilter" in >>>>> the body of a message to majordomo@vger.kernel.org >>>>> More majordomo info at http://vger.kernel.org/majordomo-info.html >> >> -- >> To unsubscribe from this list: send the line "unsubscribe netfilter" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > > ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-09-12 23:25 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-09-08 23:41 router and masquerade budi wibowo 2013-09-11 15:13 ` Tom van Leeuwen 2013-09-12 4:29 ` budi wibowo 2013-09-12 15:19 ` Tom van Leeuwen 2013-09-12 15:29 ` Tom van Leeuwen 2013-09-12 23:25 ` budi wibowo
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.