Ask a Question related to Linux / Unix Administration, Design and Development.

  1. #1

    Default iptables question

    Hi group


    I have got a problem.

    I have a firewall (floppyfw 2.05) and it forwards all traffic to port 25 and
    80 to a certain computer in my network. but since I have several computers
    in the network, it gets sent to xxx.xxx.xx.100 .. so far there isn't a
    problem. But due to some electrical problems, all the computers rebooted,
    and the one that should get xxx.xxx.xx.100 is now 101, and I can't change it
    :(

    Now, instead of rebooting all computers pointlessly, I would like to be able
    to give a command-line to change the forward-address.

    I don't know anything about networks, so please try to explain it not too
    difficult.


    Thanks

    (excuse me for my not-so-good english)

    --
    Theo Vermeulen
    [email]this-email-address-is-real.admin@nospam.patat.org[/email]
    ^it_IS_^
    #EOF
    Theo Vermeulen Guest

  2. Similar Questions and Discussions

    1. iptables and FMS on RHEL V3
      Sorry for awful english. After successfuly instalaltion of FMS on my Linux box, FMS works fine with iptables. ...
    2. :IPTables::IPv4
      Hi to all I am using IPTables::IPv4 but i have problem when i run file iptable.pl than iptable rule will be overwrite on previous iptable rule. I...
    3. regarding IPTables::IPv4
      Hi to all I am using IPTables::IPv4 But i have problem when i run file iptable.pl than iptable rule is overwrite on previous iptable rule. I have...
    4. iptables trouble
      Hi All, Trying to get my firewall to route smtp to an internal mail server. 10.0(eth1) 192.168.x.x (external eth0) | | | ...
    5. NIS and IPTABLES, what ports to allow ?
      Hi, i am setting up NIS for the first time. I get it running by doing an iptables -F on both the client and the sercver, to simplify the setup....
  3. #2

    Default Re: iptables question

    On 2004-06-27, Theo Vermeulen
    <this-email-address-is-real.admin@nospam.patat.org> wrote:
    [snip: port forwarding to a dynamic address, and the address changed!!1!1!]
    > Now, instead of rebooting all computers pointlessly, I would like to be able
    > to give a command-line to change the forward-address.
    That would be in the floppyfw documentation. That is the canonnical
    place to look it up. I suggest you do that, instead of asking others
    to do it for you.

    The better solution is to give that one particular machine a fixed IP.
    You don't explain a thing about how the network is setup, so I can't
    give hints on how to do that.

    > I don't know anything about networks, so please try to explain it not too
    > difficult.
    Hire someone to fix it for you?


    --
    j p d (at) d s b (dot) t u d e l f t (dot) n l .
    jpd Guest

  4. #3

    Default Re: iptables question

    Theo Vermeulen wrote:
    > Hi group
    >
    >
    > I have got a problem.
    >
    > I have a firewall (floppyfw 2.05) and it forwards all traffic to port 25 and
    > 80 to a certain computer in my network. but since I have several computers
    > in the network, it gets sent to xxx.xxx.xx.100 .. so far there isn't a
    > problem. But due to some electrical problems, all the computers rebooted,
    > and the one that should get xxx.xxx.xx.100 is now 101, and I can't change it
    > :(
    As the other poster suggested you need to set a static ip on your
    firewall - having it on dhcp allocated address is gonna cause you a lot
    of rule changing.

    > Now, instead of rebooting all computers pointlessly, I would like to be able
    > to give a command-line to change the forward-address.
    >
    > I don't know anything about networks, so please try to explain it not too
    > difficult.
    iptables -t nat -A PREROUTING -p tcp -s ! <FIREWALL_IP>/<SUBNET_MASK>
    -i eth0 --dport 25 -j DNAT --to xxx.xxx.xx.101:25

    iptables -t nat -A PREROUTING -p tcp -s ! <FIREWALL_IP>/<SUBNET_MASK>
    -i eth0 --dport 80 -j DNAT --to xxx.xxx.xx.101:80

    Cheers,
    Luke
    Luke Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139