No, it is not legal to camp anywhere in Sydney or Australia. There are designated camping areas including camping grounds, caravan or holiday parks or national parks. You are not permitted to camp in public areas such as parks, car parks or beaches.