Professional Web Applications Themes

Router/Firewall? - FreeBSD

Hi: I am trying to set up a router/firewall with Freebsd 5.3 this is my information: Winxp and Freebsd machine connected to Firewall machine using a hub Firewall has two ethernet cards: card1: dc0 connected to cable internet using DHCP card 2: rl0 setup to use 192.168.1.1 I can connect to the internet from the firewall: ping -c 3 www.yahoo.con successfull I can ping from Firewall to the other two machines (WinXP and FreeBSD) I can ping from XP to FreeBsd and Firewall I can pin from FreeBSD to XP and Firewall Here is the problem: I cant connect to ...

  1. #1

    Default Router/Firewall?

    Hi:

    I am trying to set up a router/firewall with Freebsd 5.3 this is my
    information:

    Winxp and Freebsd machine connected to Firewall machine using a hub

    Firewall has two ethernet cards: card1: dc0 connected to cable internet
    using DHCP
    card 2: rl0 setup to
    use 192.168.1.1

    I can connect to the internet from the firewall: ping -c 3 www.yahoo.con
    successfull
    I can ping from Firewall to the other two machines (WinXP and FreeBSD)
    I can ping from XP to FreeBsd and Firewall
    I can pin from FreeBSD to XP and Firewall

    Here is the problem: I cant connect to internet from neither XP nor
    FreeBSD machine

    Here is my rc.conf from the firewall machine:

    gateway_enable="YES"
    ifconfig_lo0="inet 127.0.0.1"
    ifconfig_dc0="DHCP"
    ifconfig_rl0="inet 192.168.1.1 netmask 255.255.255.0"
    ipfilter_enable="YES"
    ipmon_enable="YES"
    ipmon_flags="-Dsvn"
    ipnat_enable="YES"
    ipfs_enable="YES"

    Can anyabody tell me what I am missing?
    Aperez Guest

  2. #2

    Default RE: Router/Firewall?

    This is covered in detail at
    http://www.unixguide.net/freebsd/fbsd_installguide/index.php



    -----Original Message-----
    From: org
    [mailto:org]On Behalf Of Aperez
    Sent: Tuesday, March 22, 2005 3:19 PM
    To: org
    Subject: Router/Firewall?

    Hi:

    I am trying to set up a router/firewall with Freebsd 5.3 this is my
    information:

    Winxp and Freebsd machine connected to Firewall machine using a hub

    Firewall has two ethernet cards: card1: dc0 connected to cable
    internet
    using DHCP
    card 2: rl0 setup
    to
    use 192.168.1.1

    I can connect to the internet from the firewall: ping -c 3
    www.yahoo.con
    successfull
    I can ping from Firewall to the other two machines (WinXP and
    FreeBSD)
    I can ping from XP to FreeBsd and Firewall
    I can pin from FreeBSD to XP and Firewall

    Here is the problem: I cant connect to internet from neither XP nor
    FreeBSD machine

    Here is my rc.conf from the firewall machine:

    gateway_enable="YES"
    ifconfig_lo0="inet 127.0.0.1"
    ifconfig_dc0="DHCP"
    ifconfig_rl0="inet 192.168.1.1 netmask 255.255.255.0"
    ipfilter_enable="YES"
    ipmon_enable="YES"
    ipmon_flags="-Dsvn"
    ipnat_enable="YES"
    ipfs_enable="YES"

    Can anyabody tell me what I am missing?
    _______________________________________________
    org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to
    "org"

    Guest

  3. #3

    Default Re: Router/Firewall?

    Aperez wrote: 

    OK, it appears your internal network is working.

    Did you set 'defaultrouter' on FreeBSD and XP (whatever it may be
    called on Windows) to 192.168.1.1 (IP of the gateway)?

     

    What rules do you have in ipfilter and ipnat? Have you enabled NAT?

     

    Regards,

    Karol

    --
    Karol Kwiatkowski <freebsd at orchid dot homeunix dot org>
    Karol Guest

  4. #4

    Default Re: Router/Firewall?

    [please cc freebsd-questions, someone may be interested, too]


    Aperez wrote: 
    >>
    >>
    >> OK, it appears your internal network is working.
    >>
    >> Did you set 'defaultrouter' on FreeBSD and XP (whatever it may be
    >> called on Windows) to 192.168.1.1 (IP of the gateway)?
    >>
    >>
    >>
    >> 
    >>
    >>
    >> What rules do you have in ipfilter and ipnat? Have you enabled NAT?
    >>
    >>
    >>
    >> 
    >>
    >>
    >> Regards,
    >>
    >> Karol
    >>
    >>
    >>[/ref]
    > Hi
    >
    > I did set up Winxp to use 192.168.1.1 as gateway and I put
    > defaultrouter=192.168.1.1 in the Freebsd machine.
    >
    > I dont have rules for ipfilter because I was trying to see if there was
    > connectivity box---firewall---internet.[/ref]
     

    Yes. NAT is not working yet. With ipnat_enable="YES" you've just
    enabled ipnat but you didn't tell it what to do yet.

    Something like this would do:
     

    But keep in mind I no longer use ipfilter/ipnat. Please check manpage
    for ipnat(1). Also handbook section: 24.5.14 NAT
    http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipf.html

     

    'natd' is another way to do NAT. You'll need only one of them. And
    ipnat just doesn't do NAT yet.


    Regards,

    Karol


    --
    Karol Kwiatkowski <freebsd at orchid dot homeunix dot org>
    Karol Guest

Similar Threads

  1. Mac Friendly Router (DHCP) & firewall?
    By DaveC in forum Mac Networking
    Replies: 37
    Last Post: November 3rd, 09:37 PM
  2. connection with server behind the firewall Router
    By Ray in forum Microsoft SQL / MS SQL Server
    Replies: 2
    Last Post: July 23rd, 03:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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