tag:blogger.com,1999:blog-4670131101708278676.post3794274239496333385..comments2009-12-30T16:36:28.041-02:00Comments on Niels Horn's Blog has moved!: Load Balancing two ISPsniels.hornhttp://www.blogger.com/profile/17580941921421597835noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-4670131101708278676.post-88573361668794049182009-10-12T09:12:56.973-03:002009-10-12T09:12:56.973-03:00@gmbastos: You're right, it can be done in a s...@gmbastos: You're right, it can be done in a shorter line. Like they say "there are many ways to Rome". :) <br />I kept the script as simple & clear as possible to make it easier to understand. But everyone is free to improve it like you did.<br />Awk if an extremely powerful tool and I sometimes think I only use like 10% of its power...niels.hornhttps://www.blogger.com/profile/17580941921421597835noreply@blogger.comtag:blogger.com,1999:blog-4670131101708278676.post-53027415935981268442009-10-12T04:08:16.438-03:002009-10-12T04:08:16.438-03:00Hello, Niels.
Thank you for this great post. :)
...Hello, Niels.<br /><br />Thank you for this great post. :)<br /><br />But, even though you are far more experienced than me in scripting, I dare to tell you that awk can make that IP address extraction in one run (I'm referring to your load balance script):<br /><br /><i><br /># Get IP addresses of our devices:<br />ip1=`ifconfig $DEV1 | awk '/inet addr:/ { split($2,inetline,":"); print inetline[2]}'`<br />ip2=`ifconfig $DEV2 | awk '/inet addr:/ { split($2,inetline,":"); print inetline[2]}'`<br /></i><br /><br />As you work with heavy-weight servers, perhaps this can make some difference (for a SOHO user speed and footprint improvements are unnoticeable).gmbastoshttp://www.linuxquestions.org/user/gmbastos-334561/noreply@blogger.comtag:blogger.com,1999:blog-4670131101708278676.post-50192582092840638552009-07-23T21:18:52.997-03:002009-07-23T21:18:52.997-03:00Sorry for the delay in responding - I have been bu...Sorry for the delay in responding - I have been busy with some other projects.<br />If I understand correctly, you want your server to be accessible from both internet connections?<br />This is not impossible, but then the load-balancing is not done on your side.<br />When a user accesses your web page like "http://yourserver/page.html" the address of your server is translated by the DNS server to an IP address.<br />Since two internet connections means two external IP addresses, you cannot have incoming requests from both connections.<br />Professional site resolve this at the DNS level.<br />Try for instance "dig www.uol.com.br".<br />If you repeat the command several times, you can get different answers for the IP address...<br /><br />Hope this answered your question at least partially!niels.hornhttps://www.blogger.com/profile/17580941921421597835noreply@blogger.comtag:blogger.com,1999:blog-4670131101708278676.post-86828544019389377662009-07-04T20:22:55.120-03:002009-07-04T20:22:55.120-03:00Niels, interesting article. I am experimenting wit...Niels, interesting article. I am experimenting with Opera Unite. I have 2 wwan accounts (Verizon). How do I serve up a web page thru both connections simultaneously?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4670131101708278676.post-51879744902929280052008-12-09T09:02:00.000-02:002008-12-09T09:02:00.000-02:00I used 'iptraf' as it comes with Slackware. It's a...I used 'iptraf' as it comes with Slackware. It's a nice tool that works from the console.niels.hornhttps://www.blogger.com/profile/17580941921421597835noreply@blogger.comtag:blogger.com,1999:blog-4670131101708278676.post-77409417922817654092008-12-08T20:24:00.000-02:002008-12-08T20:24:00.000-02:00great post, thanksbut what is that utility you are...great post, thanks<BR/>but what is that utility you are watching interface bandwith with?Anonymousnoreply@blogger.com