Find the answer to your Linux question:
Results 1 to 2 of 2
i Configured Dhcp server and NAT server together in one server Then DHCP server is working The clients autamatically receive DHCP from the server. then The iptables are not working ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2010
    Posts
    2

    Nat iptables problem


    i Configured Dhcp server and NAT server together in one server Then DHCP server is working The clients autamatically receive DHCP from the server. then The iptables are not working and I used this commands to configure The nat.
    iptables --flush
    iptables --table nat --flush
    iptables --delete-chain
    iptables --table nat --delete-chain
    iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
    iptables --append FORWARD --in-interface eth1 -j ACCEPT
    echo 1 > /proc/sys/net/ipv4/ip_forward
    service iptables restart
    That is my problem The NAT isnot working and is not translatining inside local ip

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Are these the complete firewall rules or are there more?

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •