Re: OT: Setting a CentOS to gateway a private IP address

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



James B. Byrne wrote:

Seems like your trying to route through the linux box? Have you
enabled ip forwarding and checked your iptables ruleset to make
sure that either the default policy is ACCEPT or that you have
specific rules in there that allow forwarding?


I believe so.

# cat /proc/sys/net/ipv4/ip_forward
1
# iptables -L -n
...
blah blah
...
ACCEPT     all  --  0.0.0.0/0            192.168.219.0/24
REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with
icmp-host-prohibited

Do you permit returning packets somewhere?


To be sure that the firewall was not the source of trouble I temporarily
turned it off and observed no change in behaviour from that previously
reported.

Another correspondent pointed out that I may need to run routed to
propagate the routing information from the host to the network.

Or apply static routes on the other network - or NAT to the connecting interface address on the way out.

--
  Les Mikesell
   lesmikesell@xxxxxxxxx

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux