public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Where to put advanced routing configuration?
@ 2013-10-03 19:27 Grant Edwards
  2013-10-03 20:28 ` Kerin Millar
                   ` (2 more replies)
  0 siblings, 3 replies; 41+ messages in thread
From: Grant Edwards @ 2013-10-03 19:27 UTC (permalink / raw
  To: gentoo-user

Let's say you wanted to configure routing of TCP packets based on destination 
port like in this example:

  http://www.tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.netfilter.html

[which contains a series of 'ip' and 'iptables' commands to get packets
destined for port 25 to use a specific gateway.]

How do do this the "right" way on a Gentoo system?

Based on reading http://www.gentoo.org/doc/en/home-router-howto.xml, I think 
I've figured out how to do the iptables part: you enter the 'iptables' 
commands by hand to get the iptables set up the way you want, then you do 
this:

  # /etc/init.d/iptables save
  # rc-update add iptables default

What about the 'ip' commands required to set up the tables, routes, and 
rules?  Do those go in a startup script somewhere? Does one just edit 
/etc/iproute2/rt_tables by hand? One would assume route configuration belongs 
in /etc/conf.d/net -- I've read through the advanced networking stuff in the 
handbook, but it's not apparent to me where those 'ip' command belong.

-- 
Grant




^ permalink raw reply	[flat|nested] 41+ messages in thread

end of thread, other threads:[~2013-10-18 14:38 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-03 19:27 [gentoo-user] Where to put advanced routing configuration? Grant Edwards
2013-10-03 20:28 ` Kerin Millar
2013-10-04 16:25   ` [gentoo-user] " Grant Edwards
2013-10-04 21:58   ` [gentoo-user] " Michael Orlitzky
2013-10-04 22:33     ` Dragostin Yanev
2013-10-11  7:18     ` [gentoo-user] " Martin Vaeth
2013-10-13 10:08       ` [gentoo-user] scripted iptables-restore (was: Where to put advanced routing configuration?) Martin Vaeth
2013-10-13 14:14         ` [gentoo-user] scripted iptables-restore Michael Orlitzky
2013-10-13 15:19           ` [gentoo-user] " Martin Vaeth
2013-10-13 16:37             ` Michael Orlitzky
2013-10-13 20:07               ` Martin Vaeth
2013-10-13 21:45                 ` William Kenworthy
2013-10-14 12:08                   ` Martin Vaeth
2013-10-14 13:27                     ` William Kenworthy
2013-10-13 22:02                 ` Michael Orlitzky
2013-10-14 11:49                   ` Martin Vaeth
2013-10-14 14:26                     ` Michael Orlitzky
2013-10-14 18:49                       ` Martin Vaeth
2013-10-14 19:17                         ` Michael Orlitzky
2013-10-14 20:31                           ` Alan McKinnon
2013-10-15  1:06                             ` Michael Orlitzky
2013-10-14 18:23                 ` Tanstaafl
2013-10-14 18:52                   ` Martin Vaeth
2013-10-14 19:40                     ` Tanstaafl
2013-10-14 20:45                   ` Alan McKinnon
2013-10-16 23:21                     ` Walter Dnes
2013-10-17  6:59                       ` Alan McKinnon
2013-10-18  2:30                         ` Walter Dnes
2013-10-18  4:44                           ` Alan McKinnon
2013-10-18 10:23                           ` Tanstaafl
2013-10-18 11:19                             ` Alan McKinnon
2013-10-18 14:05                               ` Tanstaafl
2013-10-18 14:33                                 ` Alan McKinnon
2013-10-14  5:54           ` [gentoo-user] " Pandu Poluan
2013-10-14  5:57         ` [gentoo-user] scripted iptables-restore (was: Where to put advanced routing configuration?) Pandu Poluan
2013-10-14 11:52           ` [gentoo-user] " Martin Vaeth
2013-10-13 10:26     ` [gentoo-user] Where to put advanced routing configuration? shawn wilson
2013-10-13 13:53       ` Michael Orlitzky
2013-10-13 13:57       ` [gentoo-user] " Martin Vaeth
2013-10-05 21:01 ` [gentoo-user] " thegeezer
2013-10-06 16:16 ` [gentoo-user] " Grant Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox