<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: 2 IPs and binding services to one in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236815#M88178</link>
    <description>&lt;BR /&gt;Can named(8) bind(2) to a particular IP address?&lt;BR /&gt;&lt;A href="http://www.acmebw.com/askmrdns/archive.php?category=83&amp;amp;question=50" target="_blank"&gt;http://www.acmebw.com/askmrdns/archive.php?category=83&amp;amp;question=50&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.freebsd.org/cgi/man.cgi?query=named.conf&amp;amp;sektion=5" target="_blank"&gt;http://www.freebsd.org/cgi/man.cgi?query=named.conf&amp;amp;sektion=5&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Go to the following :&lt;BR /&gt;&lt;BR /&gt;THE OPTIONS STATEMENT&lt;BR /&gt;       [ listen-on [ port ip_port ] { address_match_list }; ]&lt;BR /&gt;---------&lt;BR /&gt;       blackhole&lt;BR /&gt;  Specifies a list of addresses that the server will not accept queries&lt;BR /&gt;  from or use to resolve a query.  Queries from these addresses will&lt;BR /&gt;  not be responded to.&lt;BR /&gt;   Interfaces&lt;BR /&gt;     The interfaces and ports that the server will answer queries from may be&lt;BR /&gt;     specified using the listen-on option.  listen-on takes an optional port,&lt;BR /&gt;     and an address match list.  The server will listen on all interfaces&lt;BR /&gt;     allowed by the address match list.  If a port is not specified, port 53&lt;BR /&gt;     will be used.&lt;BR /&gt;&lt;BR /&gt;     Multiple listen-on statements are allowed.  For example,&lt;BR /&gt;&lt;BR /&gt;  listen-on { 5.6.7.8; };&lt;BR /&gt;  listen-on port 1234 { !1.2.3.4; 1.2/16; };&lt;BR /&gt;&lt;BR /&gt;     will enable the nameserver on port 53 for the IP address 5.6.7.8, and on&lt;BR /&gt;     port 1234 of an address on the machine in net 1.2 that is not 1.2.3.4.&lt;BR /&gt;&lt;BR /&gt;     If no listen-on is specified, the server will listen on port 53 on all&lt;BR /&gt;     interfaces.&lt;BR /&gt;--------------------&lt;BR /&gt;Hope it helps&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Peeyush&lt;BR /&gt;&lt;A href="http://geocities.com/peeyush_maurya/" target="_blank"&gt;http://geocities.com/peeyush_maurya/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 02 Apr 2004 15:52:32 GMT</pubDate>
    <dc:creator>Peeyush</dc:creator>
    <dc:date>2004-04-02T15:52:32Z</dc:date>
    <item>
      <title>2 IPs and binding services to one</title>
      <link>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236803#M88166</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have two IPs configured on one physical interface. I want to bind specific services to a specific IP address, eg.&lt;BR /&gt;-SENDMAIL, NAMED, APACHE must use 10.10.10.4/24&lt;BR /&gt;-SQUID must use 10.10.10.8/24&lt;BR /&gt;&lt;BR /&gt;I have a PPP link to one service provider where my domain is registered, and an ADSL link to another provider that is only used for surfing.&lt;BR /&gt;The problem is that NAMED and SENDMAIL are sending packets with source address 10.10.10.8 and not 10.10.10.4.&lt;BR /&gt;&lt;BR /&gt;How do I configure these services to use  10.10.10.4?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jano&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Apr 2004 09:01:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236803#M88166</guid>
      <dc:creator>Jano_1</dc:creator>
      <dc:date>2004-04-01T09:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: 2 IPs and binding services to one</title>
      <link>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236804#M88167</link>
      <description>You can add a route rule  to send traffice to a certain net/host via some interface (eth0/eth1 etc)</description>
      <pubDate>Thu, 01 Apr 2004 09:25:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236804#M88167</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2004-04-01T09:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: 2 IPs and binding services to one</title>
      <link>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236805#M88168</link>
      <description>Hi,&lt;BR /&gt;I would prefer to change the configuration files than to add routes.&lt;BR /&gt;Jano</description>
      <pubDate>Thu, 01 Apr 2004 09:28:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236805#M88168</guid>
      <dc:creator>Jano_1</dc:creator>
      <dc:date>2004-04-01T09:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: 2 IPs and binding services to one</title>
      <link>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236806#M88169</link>
      <description>Configuration files include definition to Listen on cpecific IP. To send by protocol from specific Ip you can define rules in  iptables.</description>
      <pubDate>Thu, 01 Apr 2004 09:47:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236806#M88169</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2004-04-01T09:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: 2 IPs and binding services to one</title>
      <link>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236807#M88170</link>
      <description>Jano,&lt;BR /&gt;&lt;BR /&gt;- in squid.conf&lt;BR /&gt;            http_port 10.10.10.8:8080&lt;BR /&gt;where 8080 is port&lt;BR /&gt;&lt;BR /&gt;- in httpd.conf&lt;BR /&gt;            Listen 10.10.10.4:80&lt;BR /&gt;#remember to use &lt;BR /&gt;            &lt;VIRTUALHOST 80=""&gt;&lt;BR /&gt;&lt;BR /&gt;- in sendmail.cf&lt;BR /&gt;# SMTP daemon options&lt;BR /&gt;O DaemonPortOptions=Port=smtp,Addr=10.10.10.4, Name=MTA&lt;BR /&gt;&lt;BR /&gt;Iam 100% sure about squid and apache but u have to try it for sendmail....&lt;BR /&gt;&lt;BR /&gt;Alternative&lt;BR /&gt; - block port of their service on ip which u dont need..&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Peeyush&lt;BR /&gt;&lt;A href="http://geocities.com/peeyush_maurya/" target="_blank"&gt;http://geocities.com/peeyush_maurya/&lt;/A&gt;&lt;/VIRTUALHOST&gt;</description>
      <pubDate>Thu, 01 Apr 2004 10:47:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236807#M88170</guid>
      <dc:creator>Peeyush</dc:creator>
      <dc:date>2004-04-01T10:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: 2 IPs and binding services to one</title>
      <link>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236808#M88171</link>
      <description>All these (including sendmail) are correct if you want to configure the service to listen on address but not to use one as permanent source</description>
      <pubDate>Thu, 01 Apr 2004 10:54:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236808#M88171</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2004-04-01T10:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: 2 IPs and binding services to one</title>
      <link>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236809#M88172</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I did change my sendmail file to include the DaemonOptions as described by Peeyush. It does look as though my server is not sending anymore with source 10.10.10.8 but with 10.10.10.4. I'm using ethereal on the server in question to verify this and so far it looks ok.&lt;BR /&gt;&lt;BR /&gt;Now it is on to NAMED. Maybe SQUID, APACHE and SENDMAIL are highly configurable, but I don't know if NAMED supports this type of configuration. If not I will have no other option but to install, enable and configure IPTABLES.&lt;BR /&gt;&lt;BR /&gt;Alexander, can you maybe give me an example of how to do this for UDP and TCP port 53?&lt;BR /&gt;&lt;BR /&gt;Jano</description>
      <pubDate>Thu, 01 Apr 2004 11:15:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236809#M88172</guid>
      <dc:creator>Jano_1</dc:creator>
      <dc:date>2004-04-01T11:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: 2 IPs and binding services to one</title>
      <link>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236810#M88173</link>
      <description>If the Listen configuration works for those services then you can also try it with DNS.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;inside /etc/named.conf under option add a line&lt;BR /&gt;listen-on port 53 {x.x.x.x;};&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Apr 2004 11:36:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236810#M88173</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2004-04-01T11:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: 2 IPs and binding services to one</title>
      <link>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236811#M88174</link>
      <description>Alexander it doesn't work with NAMED.&lt;BR /&gt;&lt;BR /&gt;A quick question on the sideline. My named.conf  is configured to "allow-transfer" to secondary DNS servers of my service provider, let's say 1.1.1.1 and 1.1.1.2. When I restart NAMED I see that NAMED does the transfer to 1.1.1.1 and I receive a positive response from 1.1.1.1.&lt;BR /&gt;&lt;BR /&gt;But then I see it also tries to do a transfer to the two DNS servers configured in my resolv.conf file. This is strange behaviour and doesn't make sense. Can I stop this transfer to the servers in resolv.conf?&lt;BR /&gt;&lt;BR /&gt;Jano&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Apr 2004 12:20:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236811#M88174</guid>
      <dc:creator>Jano_1</dc:creator>
      <dc:date>2004-04-01T12:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: 2 IPs and binding services to one</title>
      <link>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236812#M88175</link>
      <description>The transfer is allowed only to the addresses specified in allow-transfer {x.x.x.x;};&lt;BR /&gt;&lt;BR /&gt;You said that you check the traffic with ethereal.&lt;BR /&gt;be sure that the traffic sent to the second (not specified under allow-transfer) host is&lt;BR /&gt;tcp.&lt;BR /&gt;The transfer goes with tcp protocol.&lt;BR /&gt;But queries are done with UDP protocol.&lt;BR /&gt;Both use the port 53.</description>
      <pubDate>Thu, 01 Apr 2004 12:34:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236812#M88175</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2004-04-01T12:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: 2 IPs and binding services to one</title>
      <link>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236813#M88176</link>
      <description>Basically what you're saying is you want your mail, dns, and http traffic to go in/out one interface (the ppp), and everybody's local surfing to go out the other (the adsl), yes?&lt;BR /&gt;&lt;BR /&gt;This is where life starts getting fun.. &lt;INSERT demonic="" laugh="" here=""&gt;..&lt;BR /&gt;&lt;BR /&gt;The tools to help you are provided with every modern Linux distribution:&lt;BR /&gt;&lt;BR /&gt;ip&lt;BR /&gt;iptables&lt;BR /&gt;&lt;BR /&gt;These two tools allow you to do some seriously powerful things!&lt;BR /&gt;&lt;BR /&gt;We do a similar thing here incidentally..  Anyway, some nasty stuff.&lt;BR /&gt;&lt;BR /&gt;(NOTE: The Advanced Routing Howto is your friend here.  Never leave home without it! (so to speak)).&lt;BR /&gt;&lt;BR /&gt;Basically what you need to do is create multiple routing tables, with filtered routing for given streams of traffic.&lt;BR /&gt;&lt;BR /&gt;You want things which originate from the box with a given destination (port) to be sourced on a given IP, and thus routed out the appropriate interafce.&lt;BR /&gt;&lt;BR /&gt;This is called "Source Routing".&lt;BR /&gt;&lt;BR /&gt;In the details you've given us, you've given two IP's on the same subnet.  That makes life extremely difficult.  Did you mask these addresses out ?  If so, please confirm that the two interfaces are actually on different subnets, and have different paths out of your system.&lt;BR /&gt;&lt;BR /&gt;Post back, and I'll give some details on how to do what you're after.&lt;/INSERT&gt;</description>
      <pubDate>Thu, 01 Apr 2004 23:01:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236813#M88176</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2004-04-01T23:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: 2 IPs and binding services to one</title>
      <link>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236814#M88177</link>
      <description>Hi Stuart,&lt;BR /&gt;&lt;BR /&gt;What you described is accurate in what I want to do. However the bad news may be that my server has two IPs on the same subnet.&lt;BR /&gt;&lt;BR /&gt;Yesterday I made some small configuration changes to my SENDMAIL and NAMED, i.e. for them to listen on the 10.10.10.4 address. I have been sniffing with ethereal and so far it looks as though the change was successful.&lt;BR /&gt;&lt;BR /&gt;As noted earlier I prefer not to follow the IPTABLES path. I have a router and would like it to do the policy based routing based on the source IP addresses.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jano</description>
      <pubDate>Fri, 02 Apr 2004 08:02:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236814#M88177</guid>
      <dc:creator>Jano_1</dc:creator>
      <dc:date>2004-04-02T08:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: 2 IPs and binding services to one</title>
      <link>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236815#M88178</link>
      <description>&lt;BR /&gt;Can named(8) bind(2) to a particular IP address?&lt;BR /&gt;&lt;A href="http://www.acmebw.com/askmrdns/archive.php?category=83&amp;amp;question=50" target="_blank"&gt;http://www.acmebw.com/askmrdns/archive.php?category=83&amp;amp;question=50&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.freebsd.org/cgi/man.cgi?query=named.conf&amp;amp;sektion=5" target="_blank"&gt;http://www.freebsd.org/cgi/man.cgi?query=named.conf&amp;amp;sektion=5&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Go to the following :&lt;BR /&gt;&lt;BR /&gt;THE OPTIONS STATEMENT&lt;BR /&gt;       [ listen-on [ port ip_port ] { address_match_list }; ]&lt;BR /&gt;---------&lt;BR /&gt;       blackhole&lt;BR /&gt;  Specifies a list of addresses that the server will not accept queries&lt;BR /&gt;  from or use to resolve a query.  Queries from these addresses will&lt;BR /&gt;  not be responded to.&lt;BR /&gt;   Interfaces&lt;BR /&gt;     The interfaces and ports that the server will answer queries from may be&lt;BR /&gt;     specified using the listen-on option.  listen-on takes an optional port,&lt;BR /&gt;     and an address match list.  The server will listen on all interfaces&lt;BR /&gt;     allowed by the address match list.  If a port is not specified, port 53&lt;BR /&gt;     will be used.&lt;BR /&gt;&lt;BR /&gt;     Multiple listen-on statements are allowed.  For example,&lt;BR /&gt;&lt;BR /&gt;  listen-on { 5.6.7.8; };&lt;BR /&gt;  listen-on port 1234 { !1.2.3.4; 1.2/16; };&lt;BR /&gt;&lt;BR /&gt;     will enable the nameserver on port 53 for the IP address 5.6.7.8, and on&lt;BR /&gt;     port 1234 of an address on the machine in net 1.2 that is not 1.2.3.4.&lt;BR /&gt;&lt;BR /&gt;     If no listen-on is specified, the server will listen on port 53 on all&lt;BR /&gt;     interfaces.&lt;BR /&gt;--------------------&lt;BR /&gt;Hope it helps&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Peeyush&lt;BR /&gt;&lt;A href="http://geocities.com/peeyush_maurya/" target="_blank"&gt;http://geocities.com/peeyush_maurya/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Apr 2004 15:52:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236815#M88178</guid>
      <dc:creator>Peeyush</dc:creator>
      <dc:date>2004-04-02T15:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: 2 IPs and binding services to one</title>
      <link>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236816#M88179</link>
      <description>AFAIK you can't tell sendmail how to source IPs.  So if sendmail happens to be sending through the IP that you want it to then congratulations.&lt;BR /&gt;&lt;BR /&gt;There's only one mail package I know of that does this and that's Imail from IPSwitch.&lt;BR /&gt;&lt;BR /&gt;On a somewhat related note sort of, if anybody knows of a way to force sendmail (or any other free MTA) to bind outgoing message based on domain to a particular source IP then please let me know!&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Apr 2004 18:34:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236816#M88179</guid>
      <dc:creator>Mark Travis</dc:creator>
      <dc:date>2004-04-02T18:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: 2 IPs and binding services to one</title>
      <link>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236817#M88180</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;edit named.conf and in options section.&lt;BR /&gt;&lt;BR /&gt;listen-on { 10.10.10.4; };&lt;BR /&gt;query-source address 10.10.10.4 port 53;&lt;BR /&gt;&lt;BR /&gt;restart named.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;U.SivaKumar.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Apr 2004 06:13:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/2-ips-and-binding-services-to-one/m-p/3236817#M88180</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2004-04-06T06:13:51Z</dc:date>
    </item>
  </channel>
</rss>

