[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ip forwarding



hello,

simple firewall problem:

1 external nic (eth0)
1 internal nic (eth1)

i do not need to do any snat or masquerading, i am just looking to
forward the traffic from the internal to the external.

so far:

# echo 1 > /proc/sys/net/ipv4/ip_forward


# iptables -L -v
Chain INPUT (policy ACCEPT 133 packets, 13277 bytes)
 pkts bytes target     prot opt in     out     source
destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source
destination

Chain OUTPUT (policy ACCEPT 90 packets, 10840 bytes)
 pkts bytes target     prot opt in     out     source
destination


# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.115.24  *               255.255.255.248 U     0      0        0
eth1
localnet        *               255.255.255.248 U     0      0        0
eth0
default         public-address  0.0.0.0         UG    0      0        0
eth0

i have a client that is configured (via next hop routing) to have its
traffic sent to the internal interface on the firewall box.
tcpdump shows traffic getting to the internal interface, but not the
external. any thoughts?

thanks,

matt zagrabelny







Reply to: