Skip to content

Commit 6edd2b4

Browse files
author
Mitchell E Berger
committed
Configure the F20 realservers to respond to the new proxy infrastructure
For the moment, this only works for traffic coming from the test proxies, because the production ones don't exist yet.
1 parent 2fdaaf6 commit 6edd2b4

File tree

5 files changed

+12
-0
lines changed

5 files changed

+12
-0
lines changed

server/fedora/config/etc/modules-load.d/iptables.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ ip6_tables
55
ip6table_filter
66
ip6t_REJECT
77
nf_log_ipv6
8+
ipt_MARK
9+
ipt_dscp

server/fedora/config/etc/sysconfig/iptables

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
:OUTPUT ACCEPT [0:0]
55
:log-smtp - [0:0]
66
-A INPUT -p udp -m udp --dport 161 ! -s 18.0.0.0/8 -j REJECT
7+
-A INPUT -m dscp --dscp 11 -j MARK --set-mark 11
8+
-A INPUT -m dscp --dscp 12 -j MARK --set-mark 12
9+
-A INPUT -m dscp --dscp 13 -j MARK --set-mark 13
710
-A OUTPUT -p tcp -m tcp --dport 25 --syn -j log-smtp
811
-A log-smtp -m owner --uid-owner postfix -j RETURN
912
-A log-smtp -m owner --uid-owner nrpe -o lo -d 127.0.0.1 -j RETURN
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
default via 18.4.86.187 dev vlan486 table 11
2+
default via 18.4.86.192 dev vlan486 table 12
3+
default via 18.4.86.194 dev vlan486 table 13
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fwmark 11 lookup 11
2+
fwmark 12 lookup 12
3+
fwmark 13 lookup 13

server/fedora/config/etc/sysctl.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
net.ipv4.ip_forward = 1
22
net.ipv4.conf.all.rp_filter = 2
33
net.ipv4.conf.default.accept_source_route = 0
4+
net.ipv4.tcp_fwmark_accept = 1
45
kernel.panic = 5
56
kernel.panic_on_oops = 1
67
kernel.sysrq = 1

0 commit comments

Comments
 (0)